add type guard for is.truthy to narrow result

This commit is contained in:
Zane Shannon 2022-01-16 15:35:19 +00:00 committed by GitHub
parent f5cc764e22
commit 12a61619d0
2 changed files with 4 additions and 3 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;