mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(tempy): add typings for tempy * test(tempy): use promise instead of async/await * test(tempy): remove use of console.log API
13 lines
298 B
TypeScript
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;
|