How to use the @phenyl/utils.createError function in @phenyl/utils

To help you get started, we’ve selected a few @phenyl/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phenyl / phenyl / modules / redux / src / local-state-updater.ts View on Github external
static error(
    e: Error | PhenylError,
    actionTag: ActionTag
  ): GeneralUpdateOperation {
    const err = createError(e);
    return {
      $set: {
        error: {
          type: err.type,
          at: err.at,
          message: err.message,
          actionTag
        }
      }
    };
  }
  /**