DefinitelyTyped/types/tempy/tempy-tests.ts
Douglas Duteil cfb448f0ac feat(tempy): add typings for tempy (#18246)
* feat(tempy): add typings for tempy

* test(tempy): use promise instead of async/await

* test(tempy): remove use of console.log API
2017-07-21 09:50:48 -07:00

13 lines
298 B
TypeScript

import { directoryAsync, directory, file, root } from 'tempy';
//
directoryAsync().then((tempDir1: string) => tempDir1 === '/tmp/123456789');
const tempDir2: string = directory();
const tempFile: string = file();
const pngFile: string = file({extension: 'png'});
const tmpRoot: string = root;