UNPKG

1.36 kBTypeScriptView Raw
1export = uuid;
2declare class uuid {
3 equals(uuid: uuid): boolean;
4 fromParts(
5 timeLow: any,
6 timeMid: any,
7 timeHiAndVersion: any,
8 clockSeqHiAndReserved: any,
9 clockSeqLow: any,
10 node: any,
11 ): uuid;
12 toBytes(): any[];
13 toString(): string;
14 toURN(): string;
15 static create(version?: number): uuid;
16 static firstFromTime(time: number): uuid;
17 static fromBinary(binary: any): uuid;
18 static fromBytes(ints: number[]): uuid;
19 static fromTime(time: number, last?: boolean): uuid;
20 static fromURN(strId: any): uuid;
21 static getTimeFieldValues(time: any): any;
22 static lastFromTime(time: any): uuid;
23 static limitUI04: number;
24 static limitUI06: number;
25 static limitUI08: number;
26 static limitUI12: number;
27 static limitUI14: number;
28 static limitUI16: number;
29 static limitUI32: number;
30 static limitUI40: number;
31 static limitUI48: number;
32 static maxFromBits(bits: number): uuid;
33 static newTS(): uuid;
34 static paddedString(string: any, length: any, z: any): uuid;
35 static randomUI04(): uuid;
36 static randomUI06(): uuid;
37 static randomUI08(): uuid;
38 static randomUI12(): uuid;
39 static randomUI14(): uuid;
40 static randomUI16(): uuid;
41 static randomUI32(): uuid;
42 static randomUI40(): uuid;
43 static randomUI48(): uuid;
44}