Closed reverie closed 3 years ago
It would be nice if assert at least annotated that the value is not undefined.
assert
undefined
https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates
Consider https://github.com/Gerhut/ts-http-assert
Type definitions are maintained here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert
It would be nice if
assert
at least annotated that the value is notundefined
.https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates