From 6de5ef12cbbe3d771b873f50097e5b192fbfd15a Mon Sep 17 00:00:00 2001 From: Jurriaan Barkey Wolf Date: Fri, 12 Jan 2024 15:35:38 +0100 Subject: [PATCH] Improve type safety of internal function. --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 75f71f0..5581830 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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;