@tgriesser/asserts
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @tgriesser/asserts

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

10 kB

Total Files

10

Last publish

Collaborators

  • tgriesser