mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-30 02:16:01 +08: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')]));
|