diff --git a/lib/hexo/index.ts b/lib/hexo/index.ts index 378d8add46..c5e48f8723 100644 --- a/lib/hexo/index.ts +++ b/lib/hexo/index.ts @@ -562,8 +562,8 @@ class Hexo extends EventEmitter { page: NormalPageGenerator | NormalPostGenerator; path: string; url: string; - config: object; - theme: object; + config: any; + theme: any; layout: string; env: any; view_dir: string; diff --git a/lib/theme/index.ts b/lib/theme/index.ts index 41c83d6bfe..d28940cbcc 100644 --- a/lib/theme/index.ts +++ b/lib/theme/index.ts @@ -10,7 +10,7 @@ import type Hexo from '../hexo'; import type { Pattern } from 'hexo-util'; class Theme extends Box { - public config: object; + public config: any; public views: Record>; public i18n: I18n; public View: typeof View; @@ -19,7 +19,7 @@ class Theme extends Box { process: (...args: any[]) => any; }[]; - constructor(ctx: Hexo, options?: object) { + constructor(ctx: Hexo, options?: any) { super(ctx, ctx.theme_dir, options); this.config = {}; diff --git a/lib/types.ts b/lib/types.ts index 162585c8b0..a22c081182 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -38,7 +38,7 @@ export interface RenderData { engine?: string; content?: string; disableNunjucks?: boolean; - markdown?: object; + markdown?: any; source?: string; titlecase?: boolean; title?: string; @@ -246,5 +246,5 @@ export interface SiteLocals { pages: Query; // _Query categories: Model; // _Model tags: Model; // _Model - data: object; + data: any; }