DefinitelyTyped/types/bytewise/bytewise-tests.ts
2018-09-18 12:00:24 -07:00

11 lines
271 B
TypeScript

import bytewise = require('bytewise');
// $ExpectType Buffer
bytewise.encode([1, 2, 3]);
// $ExpectType any
bytewise.decode(bytewise.encode([1, 2 , 3]));
// $ExpectType Buffer
bytewise.encode(bytewise.sorts.array.bound.lower(['123', -1, 0x123, Buffer.from('test')]));