DefinitelyTyped/types/write-pkg/index.d.ts
2018-02-16 15:29:55 +01:00

16 lines
523 B
TypeScript

// Type definitions for write-pkg 3.1
// Project: https://github.com/sindresorhus/write-pkg#readme
// Definitions by: Aleh Zasypkin <https://github.com/azasypkin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface WritePkg {
(path: string, data: { [k: string]: any }): Promise<void>;
(data: { [k: string]: any }): Promise<void>;
sync(path: string, data: { [k: string]: any }): void;
sync(data: { [k: string]: any }): void;
}
declare const writePkg: WritePkg;
export = writePkg;