mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
* Add types for parent-package-json * Update return type to false and restructure tests * Remove multiple calls of parent() in tests * Test optional properties
18 lines
577 B
TypeScript
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};
|
|
}
|
|
}
|