Files
DefinitelyTyped/types/unique-hash-stream/index.d.ts
2017-08-18 13:30:12 +02:00

17 lines
531 B
TypeScript

// Type definitions for unique-hash-stream 1.0
// Project: https://github.com/stream-utils/unique-hash-stream
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Transform } from 'stream';
export = UniqueFactory;
declare function UniqueFactory(hashingFn?: (doc: any) => string): Transform;
declare namespace UniqueFactory {
const Unique: typeof Transform;
function calculate(doc: any): string;
}