From b6874a6e0bfc9562f19b47210dfe871dbd615357 Mon Sep 17 00:00:00 2001 From: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:18:56 +0000 Subject: [PATCH] fixes type guard prop type --- src/lib/utility/package/type-guards.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/utility/package/type-guards.ts b/src/lib/utility/package/type-guards.ts index e537435..4f0fc73 100644 --- a/src/lib/utility/package/type-guards.ts +++ b/src/lib/utility/package/type-guards.ts @@ -1,7 +1,7 @@ -export function isBoolean(value: any): value is boolean { +export function isBoolean(value: unknown): value is boolean { return typeof value === 'boolean'; } -export function isNumber(value: any): value is number { +export function isNumber(value: unknown): value is number { return typeof value === 'number' && !isNaN(value); }