mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
8 lines
156 B
TypeScript
8 lines
156 B
TypeScript
import promisify = require('promisify-node');
|
|
|
|
let fs = promisify('fs');
|
|
|
|
fs.readFile('example.txt').then((content: any) => {
|
|
console.log(content);
|
|
});
|