Skip to content

Commit

Permalink
Improve type safety of internal function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhbw committed Jan 12, 2024
1 parent 86f7cbd commit 6de5ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export async function getMetadata(template: Buffer) {
return;
}

const numberize = (a: any): number | undefined => {
const numberize = (a: unknown): number | undefined => {
const c = Number(a);
if (Number.isFinite(c)) return c;
return;
Expand Down

0 comments on commit 6de5ef1

Please sign in to comment.