This commit is contained in:
2026-01-01 15:19:58 +08:00
parent 93880becef
commit 73ebd02cdb
25 changed files with 14913 additions and 880 deletions

25
app/types/twikoo.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
export interface TwikooConfig {
envId: string;
region?: string;
el?: string | HTMLElement;
path?: string;
lang?: string;
theme?: string;
locale?: Record<string, string>;
[key: string]: string | HTMLElement | undefined;
}
export interface TwikooAPI {
(config: TwikooConfig): Promise<void>;
}
declare module "twikoo" {
export const twikoo: TwikooAPI;
export default twikoo;
}
declare module "#app" {
interface NuxtApp {
$twikoo: TwikooAPI;
}
}