mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
27 lines
588 B
TypeScript
27 lines
588 B
TypeScript
// Type definitions for load-json-file v2.0.0
|
|
// Project: https://github.com/sindresorhus/load-json-file
|
|
// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "load-json-file" {
|
|
|
|
interface LoadJsonFile {
|
|
/**
|
|
* Returns a promise for the parsed JSON.
|
|
*
|
|
* @param filepath
|
|
*/
|
|
(filepath: string): Promise<any>;
|
|
/**
|
|
* Returns the parsed JSON.
|
|
*
|
|
* @param filepath
|
|
*/
|
|
sync(filepath: string): any;
|
|
}
|
|
|
|
const loadJsonFile: LoadJsonFile;
|
|
|
|
export = loadJsonFile;
|
|
}
|