diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..e1a6666 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,13 @@ +interface xuid { + (now?: number): string; + create(now?: number): string; + date(id: string): Date | undefined; + dateValue(id: string): number | undefined; + now: null; + ALPHABET: string; + MAX_COUNTER: number | undefined; + MAX_RANDOM: number | undefined; +} +declare const xuid: xuid +export = xuid; +export as namespace xuid diff --git a/package.json b/package.json index 3bf2c56..d382321 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xuid", - "version": "4.1.3", + "version": "4.1.4", "main": "index.js", "author": "Robert Nagy ", "keywords": [