Result

What results, what is a consequence, the effect of an action.

Result as its name says, returns an instance capable of identifying whether the processing of a function was successful or failed. And most importantly, do not throw errors

import { Result } from 'types-ddd';

Methods

  • ok

  • success

  • fail

  • combine

Last updated