throw expression as a function
Import
API
throw
Just throws given error
. Function is also generic and has a output
type
parameter so that it's return type can be treated as anything you want.
// => Error: Boom
Parameters
error
reason
Returns output
Install
yarn add throw.flow --save
or with npm
npm install throw.flow --save