Files
DefinitelyTyped/types/uuid/index.d.ts
Daniel Milbrandt ce9e109a99 added uuid v5 to uuidStatic List (#20634)
You was not able to do "  import {v5} from 'uuid' ", this will fix it
2017-10-17 09:15:27 -07:00

23 lines
764 B
TypeScript

// Type definitions for uuid 3.4
// Project: https://github.com/kelektiv/node-uuid
// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius>
// Felipe Ochoa <https://github.com/felipeochoa>
// Chris Barth <https://github.com/cjbarth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
// The version number has been artificially set to 3.4, instead of 3.0,
// because of the existing uuid-js npm types package being at 3.3.28,
// meaning that `npm install @types/uuid` was installing the typings for uuid-js, not this
import { v1, v4, v5 } from './interfaces';
interface UuidStatic {
v1: v1;
v4: v4;
v5: v5;
}
declare const uuid: UuidStatic & v4;
export = uuid;