DefinitelyTyped/types/uniqid/index.d.ts
2019-02-12 14:36:28 -08:00

14 lines
508 B
TypeScript

// Type definitions for uniqid 4.1
// Project: http://github.com/adamhalasz/uniqid
// Definitions by: idchlife <https://github.com/idchlife>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid
// Commmon function signature
declare function f(prefix?: string): string;
// let x -> Workaround for ES6 imports
// Combined type because of assigning to function object in original module
declare let x: typeof f & { process: typeof f } & { time: typeof f };
export = x;