Files
DefinitelyTyped/types/parent-package-json/index.d.ts
Simon McClive 254fb86815 Add types for parent-package-json (#20714)
* Add types for parent-package-json

* Update return type to false and restructure tests

* Remove multiple calls of parent() in tests

* Test optional properties
2017-10-19 11:38:48 -07:00

18 lines
577 B
TypeScript

// Type definitions for parent-package-json 2.0
// Project: https://github.com/maxrimue/parent-package-json
// Definitions by: Simon McClive <https://github.com/sgmccli>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export = ParentPackageJson;
declare function ParentPackageJson(startPath?: string | null, ignore?: number): ParentPackageJson.ParentPackage | false;
declare namespace ParentPackageJson {
interface ParentPackage {
read(): string;
path: string;
parse(): {[key: string]: any};
}
}