Skip to content

Commit

Permalink
feat(core): add DaffFailureAction (#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Dec 1, 2023
1 parent 98301f8 commit 2a8cec3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
13 changes: 13 additions & 0 deletions libs/core/state/src/actions/failure.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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 {
/**
* A list of errors that occured during the operation.
*/
readonly payload: DaffStateError[];
}
1 change: 1 addition & 0 deletions libs/core/state/src/actions/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export *from './failure.type';
9 changes: 5 additions & 4 deletions libs/core/state/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export * from './operators/public_api';
export * from './states/public_api';
export * from './errors/public_api';
export * from './reducers/public_api';
export * from './actions/public_api';
export * from './collection/public_api';
export * from './errors/public_api';
export * from './operation/public_api';
export * from './operators/public_api';
export * from './reducers/public_api';
export * from './states/public_api';

export { DaffStoreFacade } from './store/facade';

0 comments on commit 2a8cec3

Please sign in to comment.