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