You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionassertIsString(val: any): asserts val is string{if(typeofval!=="string"){thrownewAssertionError("Not a string!");}}
Brainstorm todo list
Check if it's convenient to use the library with a simple consumer-created assert method, such as assert(tg.isString), or should type-guards provide the assert function with an easy-to-use signature with type guards provided by the library.
Is it needed to provide things like tg.assertIsString, or should the above assert(tg.isString) or tg.assert(tg.isString) enough?
The text was updated successfully, but these errors were encountered:
From here:
Brainstorm todo list
assert
method, such asassert(tg.isString)
, or shouldtype-guards
provide theassert
function with an easy-to-use signature with type guards provided by the library.tg.assertIsString
, or should the aboveassert(tg.isString)
ortg.assert(tg.isString)
enough?The text was updated successfully, but these errors were encountered: