Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
}
}
};
}
/**