Skip to content

Commit

Permalink
fix: object
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Jan 20, 2024
1 parent 6a03824 commit b196e76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/hexo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lib/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Record<string, View>>;
public i18n: I18n;
public View: typeof View;
Expand All @@ -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 = {};
Expand Down
4 changes: 2 additions & 2 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface RenderData {
engine?: string;
content?: string;
disableNunjucks?: boolean;
markdown?: object;
markdown?: any;
source?: string;
titlecase?: boolean;
title?: string;
Expand Down Expand Up @@ -246,5 +246,5 @@ export interface SiteLocals {
pages: Query<PageSchema>; // _Query
categories: Model<CategorySchema>; // _Model
tags: Model<TagSchema>; // _Model
data: object;
data: any;
}

0 comments on commit b196e76

Please sign in to comment.