fix: add predicate for isBoolean #1300
Labels
status: done/released
Issue has been completed, no further action is needed.
type: fix
Issues describing a broken feature.
Description
Hey, I have found one little bug in types.
isBoolean
should have a predicate which states, thatvalue is boolean
.Minimal code-snippet showcasing the problem
Here is a simple example. TypeScript will keep thinking,
val
is123
, butisBoolean
should make him think, its boolean.Expected behavior
TypeScript knows that value has type
boolean
.Actual behavior
isBoolean
returns boolean value without predicate, so, it does not say anything for TypeScript.The text was updated successfully, but these errors were encountered: