We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
1 parent ae6e6a2 commit 37229ceCopy full SHA for 37229ce
index.test-d.ts
@@ -12,8 +12,8 @@ expectType<string>(tempy.root);
12
expectType<Promise<string>>(tempy.write('unicorn'));
13
expectType<Promise<string>>(tempy.write('unicorn', {name: 'pony.png'}));
14
expectType<Promise<string>>(tempy.write(process.stdin, {name: 'pony.png'}));
15
-expectType<Promise<string>>(tempy.write(new Buffer('pony'), {name: 'pony.png'}));
+expectType<Promise<string>>(tempy.write(Buffer.from('pony'), {name: 'pony.png'}));
16
17
expectType<string>(tempy.writeSync('unicorn'));
18
-expectType<string>(tempy.writeSync(new Buffer('unicorn')));
+expectType<string>(tempy.writeSync(Buffer.from('unicorn')));
19
expectType<string>(tempy.writeSync('unicorn', {name: 'pony.png'}));
0 commit comments