From 04ef57de3cca268d7f258c9629d689a3c473f0f2 Mon Sep 17 00:00:00 2001 From: 16sheep Date: Fri, 6 Aug 2021 22:21:58 +0300 Subject: [PATCH] Make parameter type generic for value checker (#1764) --- src/value_checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/value_checker.ts b/src/value_checker.ts index 238577974..7aa7a25c7 100644 --- a/src/value_checker.ts +++ b/src/value_checker.ts @@ -1,8 +1,8 @@ -export function doesHaveValue(value: any): boolean { +export function doesHaveValue(value: T): boolean { return !doesNotHaveValue(value) } -export function doesNotHaveValue(value: any): boolean { +export function doesNotHaveValue(value: T): boolean { return value === null || value === undefined }