Home Manual Reference Source

Usage

First, require the polyfill at the entry point of your application

require( 'regenerator-runtime/runtime' ) ;
// or
import 'regenerator-runtime/runtime.js' ;

Then, import the library where needed

const { ... } = require( '@failure-abstraction/error' ) ;
// or
import { ... } from '@failure-abstraction/error' ;