From bf62f582001321539c97d97cb9458bf010093b91 Mon Sep 17 00:00:00 2001 From: dimaslanjaka Date: Wed, 17 May 2023 20:05:07 +0700 Subject: [PATCH] chore: add overload execFilter fix(TS2556): A spread argument must either have a tuple type --- lib/hexo/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hexo/index.ts b/lib/hexo/index.ts index c99989dc5a..8b579b70f8 100644 --- a/lib/hexo/index.ts +++ b/lib/hexo/index.ts @@ -618,10 +618,12 @@ class Hexo extends EventEmitter { }); } + execFilter(...args: any[]): any; execFilter(type: string, data: any, options?: Record) { return this.extend.filter.exec(type, data, options); } + execFilterSync(...args: any[]): any; execFilterSync(type: string, data: any, options?: Record) { return this.extend.filter.execSync(type, data, options); }