meta: extend declaration of uuid/v1
This commit is contained in:
parent
b3c31a4188
commit
c829193adf
|
@ -1,4 +1,17 @@
|
||||||
declare module 'uuid/v1';
|
// this declaration is based on https://github.com/uuidjs/uuid/blob/v3.4.0/README.md
|
||||||
|
|
||||||
|
type UuidOptions = {
|
||||||
|
node?: number[];
|
||||||
|
clockseq?: number;
|
||||||
|
msecs?: number;
|
||||||
|
nescs?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
declare module 'uuid/v1' {
|
||||||
|
const v1: (options?: UuidOptions, buf?: number[] | Buffer, offset?: number) => string;
|
||||||
|
export = v1;
|
||||||
|
}
|
||||||
|
|
||||||
declare module 'uuid/v3';
|
declare module 'uuid/v3';
|
||||||
declare module 'uuid/v4';
|
declare module 'uuid/v4';
|
||||||
declare module 'uuid/v5';
|
declare module 'uuid/v5';
|
||||||
|
|
Loading…
Reference in New Issue