DefinitelyTyped/types/scrypt-js/scrypt-js-tests.ts
2018-08-28 18:31:02 -07:00

8 lines
224 B
TypeScript

import scrypt = require('scrypt-js');
const testBuffer = Buffer.from('test');
const testCB = (err: Error | undefined | null, progress: number) => {};
// $ExpectType void
scrypt(testBuffer, testBuffer, 1, 1, 1, 1, testCB);