mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 16:27:06 +00:00
13 lines
307 B
TypeScript
13 lines
307 B
TypeScript
import unique = require('unique-hash-stream');
|
|
|
|
const stream = unique();
|
|
unique(doc => {
|
|
doc; // $ExpectType any
|
|
return 'foo';
|
|
});
|
|
stream; // $ExpectType Transform
|
|
unique.Unique; // $ExpectType typeof Transform
|
|
unique.calculate; // $ExpectType (doc: any) => string
|
|
|
|
stream instanceof unique.Unique;
|