Skip to content

Commit 04ef57d

Browse files
authored
Make parameter type generic for value checker (#1764)
1 parent 42538f6 commit 04ef57d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/value_checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export function doesHaveValue(value: any): boolean {
1+
export function doesHaveValue<T>(value: T): boolean {
22
return !doesNotHaveValue(value)
33
}
44

5-
export function doesNotHaveValue(value: any): boolean {
5+
export function doesNotHaveValue<T>(value: T): boolean {
66
return value === null || value === undefined
77
}
88

0 commit comments

Comments
 (0)