UNPKG

@3fv/guard

Version:

TypeScript guard suite

15 lines (9 loc) 261 B
# `@3fv/guard` type guards A library which helps typing with basic guards and simple extensions for creating new ones ## `guard` Guard against both `sync` and `async` functions & results from exceptions. ### `guard.lift` Lift a function, making it guarded