From 0d02a9aad063d0840474504de9d0170119e36fff Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Fri, 25 Apr 2025 16:17:41 +0200 Subject: [PATCH] fix: :label: fix declaration of global --- src/global.d.ts | 4 +++- src/utils.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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";