mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
fix(read-pkg-up): make requested changes
This commit is contained in:
Vendored
+3
-3
@@ -4,9 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace ReadPkgUp {
|
||||
function sync(options?: Options): Package;
|
||||
export function sync(options?: Options): Package;
|
||||
|
||||
interface Options {
|
||||
export interface Options {
|
||||
/**
|
||||
* Directory to start looking for a package.json file.
|
||||
*
|
||||
@@ -21,7 +21,7 @@ declare namespace ReadPkgUp {
|
||||
normalize?: boolean;
|
||||
}
|
||||
|
||||
interface Package {
|
||||
export interface Package {
|
||||
[key: string]: any;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as ReadPkgUp from 'read-pkg-up';
|
||||
import ReadPkgUp = require('read-pkg-up');
|
||||
|
||||
ReadPkgUp({cwd: '.', normalize: false}).then(pkg => typeof pkg === 'object');
|
||||
typeof ReadPkgUp.sync({cwd: '.', normalize: false}) === 'object';
|
||||
|
||||
Reference in New Issue
Block a user