update
This commit is contained in:
@@ -7,14 +7,5 @@ export interface BlogPost {
|
||||
tags: string[];
|
||||
categories: string[];
|
||||
published: boolean;
|
||||
meta: BlogPostMeta; // 添加 meta 属性
|
||||
path: string; // 添加 path 属性
|
||||
}
|
||||
|
||||
interface BlogPostMeta {
|
||||
image?: string;
|
||||
alt?: string;
|
||||
date?: string;
|
||||
tags?: string[];
|
||||
// 根据实际情况添加其他可能的属性
|
||||
path: string;
|
||||
}
|
||||
|
||||
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