Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo authored and stevenjoezhang committed Mar 11, 2023
1 parent 1d54103 commit a7d0eb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/hexo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ interface Query {
declare module 'module' {
function _nodeModulePaths(path: string): string[];
function _resolveFilename(request: string, parent: Module, isMain?: any, options?: any): string;
const _extensions: NodeJS.RequireExtensions;
const _cache: any;
const _extensions: NodeJS.RequireExtensions,
_cache: any;
}

class Hexo extends EventEmitter {
Expand Down Expand Up @@ -351,7 +351,7 @@ class Hexo extends EventEmitter {
}
}

loadPlugin(path: string, callback: Function) {
loadPlugin(path: string, callback: (...args: any[]) => any) {
return readFile(path).then(script => {
// Based on: https://github.com/joyent/node/blob/v0.10.33/src/node.js#L516
const module = new Module(path);
Expand Down

0 comments on commit a7d0eb6

Please sign in to comment.