Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async invoke(): Promise<void> {
- return new Promise<void>((res, rej) => {
- fs.readFile(this.templatePath, (outerError: NodeJS.ErrnoException, data: Buffer): void => {
- if (outerError !== null) {
- rej(new Error(`FileNotFoundException: Cannot find file `${this.templatePath}'.`));
- }
- });
- })
- }
Add Comment
Please, Sign In to add comment