fix(read-pkg-up): make requested changes

This commit is contained in:
Louis Orleans
2017-09-20 11:19:41 -07:00
parent 105b593854
commit d1d1593804
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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 -1
View File
@@ -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';