Skip to content

Commit

Permalink
fix(types): cast from number to string explicitly
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 Oct 31, 2023
1 parent f7a581e commit f4a5ef6
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 f4a5ef6

Please sign in to comment.