diff --git a/index.d.ts b/index.d.ts index da9dbc9..ccdf5fc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,22 +1,18 @@ -declare namespace cuid2 { - export function getConstants(): { - defaultLength: number; - bigLength: number; - }; +export function getConstants(): { + defaultLength: number; + bigLength: number; +}; - export function init(options?: { - random?: () => number; - counter?: () => number; - length?: number; - fingerprint?: string; - }): () => string; +export function init(options?: { + random?: () => number; + counter?: () => number; + length?: number; + fingerprint?: string; +}): () => string; - export function isCuid( - id: string, - options?: { minLength?: number; maxLength?: number } - ): boolean; +export function isCuid( + id: string, + options?: { minLength?: number; maxLength?: number } +): boolean; - export function createId(): string; -} - -export = cuid2; +export function createId(): string;