diff --git a/src/global.d.ts b/src/global.d.ts index adfbf9f..0f35521 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -30,4 +30,6 @@ export interface CreateArchiveResult { error?: string; } -declare function createArchive(payload: CreateArchiveInput): Promise; +declare global { + function createArchive(payload: CreateArchiveInput): Promise; +} diff --git a/src/utils.tsx b/src/utils.tsx index 6494fe5..a2706fd 100644 --- a/src/utils.tsx +++ b/src/utils.tsx @@ -1,6 +1,6 @@ import { IconCheck, IconExclamationMark } from "@tabler/icons-react"; -import { CreateArchiveInput } from "./types"; +import { CreateArchiveInput } from "./global.d"; import { notifications } from "@mantine/notifications"; import { ChatCompletionMessageParam } from "@mlc-ai/web-llm";