1.0.3 • Published 1 year ago
ts-simple-assertions v1.0.3
ts-assertions
A TypeScript library for type assertions.
Installation
npm install ts-simple-assertions
Usage
import { assert_string } from 'ts-assertions';
const value: any = 'hello';
assertString(value); // No error
assertString(123); // Throws error