DefinitelyTyped/types/temp-write/index.d.ts
2017-08-10 16:54:57 -07:00

14 lines
504 B
TypeScript

// Type definitions for temp-write 3.3
// Project: https://github.com/sindresorhus/temp-write#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export = tempWrite;
declare function tempWrite(input: string | Buffer | NodeJS.ReadableStream, filepath?: string): Promise<string>;
declare namespace tempWrite {
function sync(input: string | Buffer, filepath?: string): string;
}