/asserts

Simple TypeScript assertion functions

Primary LanguageTypeScript

@tgriesser/asserts

Simple TypeScript assertion functions:

asserts.string(val); // val is any

val; // val is string
asserts.string(val, 'Expected val to be string, saw '); // val is any

val; // val is string