From cfa8f2f6d30053b095cfac410d87bbbbc63f08bd Mon Sep 17 00:00:00 2001 From: asdelday Date: Mon, 26 Jul 2021 10:03:34 +0200 Subject: [PATCH] refactor: remove duplicate assignment at `IsFunction` --- src/types/predicates.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/types/predicates.ts b/src/types/predicates.ts index b2731b6..164f82b 100644 --- a/src/types/predicates.ts +++ b/src/types/predicates.ts @@ -20,10 +20,7 @@ export type IsType = X extends T ? True : False; export type IsArray = T extends unknown[] ? True : False; export type IsNumber = T extends number ? True : False; export type IsString = T extends string ? True : False; -export type IsFunction = - Or< - T extends Function ? True : False, - T extends Function ? True : False>; +export type IsFunction = T extends Function ? True : False; export type IsStringFunction = And, IsNever>; export type IsBoolean = T extends boolean ? True : False;