enhancement: type definitions should include type predicate
reverie opened this issue · comments
Andrew Badr commented
It would be nice if assert
at least annotated that the value is not undefined
.
https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates
George Cheng commented
Douglas Wilson commented
Type definitions are maintained here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert