Skip to content

Commit

Permalink
fix(types): cast from number to string explicitly (#5342)
Browse files Browse the repository at this point in the history
- fix `TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.` error
  • Loading branch information
yoshinorin committed Nov 2, 2023
1 parent f7a581e commit d2cc931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hexo/multi_config_path.ts
Expand Up @@ -62,7 +62,7 @@ export = (ctx: Hexo) => function multiConfigPath(base: string, configPaths: stri
return defaultPath;
}

log.i('Config based on', count, 'files');
log.i('Config based on', count.toString(), 'files');

const multiconfigRoot = outputDir || base;
const outputPath = join(multiconfigRoot, '_multiconfig.yml');
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/console/generate.ts
Expand Up @@ -169,7 +169,7 @@ class Generater {
const interval = prettyHrtime(process.hrtime(this.start));
const count = result.filter(Boolean).length;

log.info('%d files generated in %s', count, cyan(interval));
log.info('%d files generated in %s', count.toString(), cyan(interval));
});
}
execWatch(): Promise<void> {
Expand Down

0 comments on commit d2cc931

Please sign in to comment.