From b21c42e6389873d2b74827203ad7fcea4d041767 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 16 Jan 2019 20:15:45 +0000 Subject: [PATCH] fix type --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 5d3f624..6dd6a4d 100644 --- a/src/util.ts +++ b/src/util.ts @@ -6,7 +6,7 @@ export function createTempFile(content: string, options = {}): Promise { return new Promise((resolve, reject) => { tmp.file(options, (err, path) => { if (err) return reject(err) - fs.writeFile(path, content, 'utf8', err => { + fs.writeFile(path, content, { encoding: 'utf8' }, err => { if (err) return reject(err) resolve(path) })