mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
523 B
TypeScript
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;
|