Skip to content

Commit

Permalink
chore: add overload execFilter
Browse files Browse the repository at this point in the history
fix(TS2556): A spread argument must either have a tuple type
  • Loading branch information
dimaslanjaka committed May 17, 2023
1 parent 4f6cbd3 commit bf62f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/hexo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,12 @@ class Hexo extends EventEmitter {
});
}

execFilter(...args: any[]): any;
execFilter(type: string, data: any, options?: Record<string, any>) {
return this.extend.filter.exec(type, data, options);
}

execFilterSync(...args: any[]): any;
execFilterSync(type: string, data: any, options?: Record<string, any>) {
return this.extend.filter.execSync(type, data, options);
}
Expand Down

0 comments on commit bf62f58

Please sign in to comment.