Skip to content

Commit

Permalink
resolve microsoft#16655; Boolean() can be type-guard for null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Oct 26, 2023
1 parent 79da510 commit 78e5557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ interface Boolean {

interface BooleanConstructor {
new (value?: any): Boolean;
<T>(value?: T): boolean;
<T>(value?: T | null | undefined): value is T;
readonly prototype: Boolean;
}

Expand Down

0 comments on commit 78e5557

Please sign in to comment.