From bf1b2b4a92613de88c7bd41da80b5349888c0380 Mon Sep 17 00:00:00 2001 From: regevbr Date: Mon, 20 Apr 2020 13:36:49 +0300 Subject: [PATCH] chore: consider replacing any usage of any with unknown #59 --- src/utils/types/typeGuards.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/types/typeGuards.ts b/src/utils/types/typeGuards.ts index d60bb062..c351c266 100644 --- a/src/utils/types/typeGuards.ts +++ b/src/utils/types/typeGuards.ts @@ -1,6 +1,6 @@ import { isNumber, isString } from 'ts-type-guards'; import { StringOrNumber } from './types'; -export const isStringOrNumber = (x: any): x is StringOrNumber => { +export const isStringOrNumber = (x: unknown): x is StringOrNumber => { return isString(x) || isNumber(x); };