From c23b58a8e41945a03e5c17933afaab1c29e53e88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:07:46 +0000 Subject: [PATCH 1/2] Initial plan From cbd62fc3354c7c4d3d38e5ad9c7920a4f36090c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:13:42 +0000 Subject: [PATCH 2/2] Fix TS1203: Replace export = with named exports in index.d.ts Co-authored-by: ericelliott <364727+ericelliott@users.noreply.github.com> --- index.d.ts | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) 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;