@toreda/action-result
v0.3.0
Published
![Toreda](https://content.toreda.com/logo/toreda-logo.png)
Downloads
3
Readme
@toreda/action-result
Simple interface return a result and details or context about the result.
Install
With yarn (preferred):
yarn add @toreda/action-result
With NPM:
npm install @toreda/action-result
Usage
Library Usage
Typescript
import {ActionResult} from '@toreda/action-result';
Node
const ARConfig = require('@toreda/action-result');
Build
Build (or rebuild) the config package:
With Yarn (preferred):
yarn install
yarn build
With NPM:
npm install
npm run-script build
Testing
Config implements unit tests using jest. Run the following commands from the directory where config has been installed.
With yarn (preferred):
yarn install
yarn test
With NPM:
npm install
npm run-script test
License
MIT © Toreda, Inc.