mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
271 B
TypeScript
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')]));
|