Skip to content

Commit

Permalink
feat(core): add DaffFailable (#2786)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed May 13, 2024
1 parent 5c6aa86 commit 4839705
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions libs/core/state/src/actions/failure.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { Action } from '@ngrx/store';

import { DaffStateError } from '../errors/state-error.interface';

/**
* An action that represents a failure of an operation.
*/
export interface DaffFailureAction extends Action {
export interface DaffFailable {
/**
* A list of errors that occured during the operation.
*/
readonly payload: DaffStateError[];
}

/**
* An action that represents a failure of an operation.
*/
export interface DaffFailureAction extends DaffFailable, Action {}
2 changes: 1 addition & 1 deletion libs/core/state/src/actions/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export *from './failure.type';
export * from './failure.type';

0 comments on commit 4839705

Please sign in to comment.