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
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