Skip to content

Commit

Permalink
overload
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Feb 7, 2024
1 parent f89ffb1 commit c1badde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/hexo/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class Render {
return this.getRenderer(ext, true);
}

render(data: StoreFunctionData, callback?: NodeJSLikeCallback<any>): Promise<any>;
render(data: StoreFunctionData, options: any, callback?: NodeJSLikeCallback<any>): Promise<any>;
render(data: StoreFunctionData, options?: any | NodeJSLikeCallback<any>, callback?: NodeJSLikeCallback<any>): Promise<any> {
if (!callback && typeof options === 'function') {
callback = options;
Expand Down

0 comments on commit c1badde

Please sign in to comment.