update
This commit is contained in:
25
app/types/twikoo.d.ts
vendored
Normal file
25
app/types/twikoo.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user