Type-checking Packages

type-guard

Guard is a type checker that aims to make type checking function arguments easier and more readable.

0.2.3 • Published 9 years ago

easy-enums

Easy but powerful enums for safer code. e.g. const Fruit = new Enum("apple pear banana"); gives you Fruit.apple, Fruit.has("apple"), and Fruit.$apple() (as a fail-fast value), whilst Fruit.isApple('penguin') will throw an error.

1.1.8 • Published 4 years ago