Add type guard for is.truthy and is.falsy (#151)

This commit is contained in:
Zane Shannon 2022-01-25 02:28:33 -08:00 committed by GitHub
parent 73daee6648
commit 63d75d68ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -47,3 +47,5 @@ export interface ObservableLike {
subscribe(observer: (value: unknown) => void): void;
[Symbol.observable](): ObservableLike;
}
export type Falsy = false | 0 | 0n | '' | null | undefined;