mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
I made a mistake in my original PR https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21578 The function should return a promise. - https://www.npmjs.com/package/package-json - https://github.com/sindresorhus/package-json/blob/master/index.js#L30
15 lines
452 B
TypeScript
15 lines
452 B
TypeScript
// Type definitions for package-json 4.0
|
|
// Project: https://github.com/sindresorhus/package-json#readme
|
|
// Definitions by: Jinwoo Lee <https://github.com/jinwoo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
interface PackageJsonOptions {
|
|
version?: string;
|
|
fullMetadata?: boolean;
|
|
allVersions?: boolean;
|
|
}
|
|
|
|
declare function packageJson(name: string, options?: PackageJsonOptions): Promise<{}>;
|
|
|
|
export = packageJson;
|