Skip to content

Commit

Permalink
fix: return type for DeleteByKey actions
Browse files Browse the repository at this point in the history
Resolves #183
  • Loading branch information
Jesse Wells authored and Jon Rista committed Jun 21, 2021
1 parent 84833a8 commit 9b66bd6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/ngrx-auto-entity/src/lib/util/action-map.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { ActionCreator } from '@ngrx/store';
import { DeleteByKey, DeleteManyByKeysFailure } from '../..';
import { Clear } from '../actions/actions';
import { Create, CreateFailure, CreateMany, CreateManyFailure, CreateManySuccess, CreateSuccess } from '../actions/create-actions';
import { Delete, DeleteFailure, DeleteMany, DeleteManyFailure, DeleteManySuccess, DeleteSuccess } from '../actions/delete-actions';
import { DeleteManyByKeys, DeleteManyByKeysSuccess } from '../actions/delete-by-key-actions';
import {
DeleteByKey,
DeleteByKeyFailure,
DeleteByKeySuccess,
DeleteManyByKeys,
DeleteManyByKeysFailure,
DeleteManyByKeysSuccess
} from '../actions/delete-by-key-actions';
import { Deselect, DeselectAll, Deselected, DeselectedMany, DeselectMany, DeselectManyByKeys } from '../actions/deselection-actions';
import { Change, Changed, Edit, EditByKey, Edited, EditedByKey, EditEnded, EditNew, EndEdit } from '../actions/edit-actions';
import { Load, LoadFailure, LoadIfNecessary, LoadSuccess } from '../actions/load-actions';
Expand Down Expand Up @@ -108,8 +114,8 @@ export interface IActionMap<TModel> {
deleteManyFailure: ActionCreator<string, (props: DeleteManyFailureProps<TModel>) => DeleteManyFailure<TModel>>;

deleteByKey: ActionCreator<string, (props: DeleteByKeyProps<TModel>) => DeleteByKey<TModel>>;
deleteByKeySuccess: ActionCreator<string, (props: DeleteByKeyProps<TModel>) => DeleteByKey<TModel>>;
deleteByKeyFailure: ActionCreator<string, (props: DeleteByKeyFailureProps<TModel>) => DeleteByKey<TModel>>;
deleteByKeySuccess: ActionCreator<string, (props: DeleteByKeyProps<TModel>) => DeleteByKeySuccess<TModel>>;
deleteByKeyFailure: ActionCreator<string, (props: DeleteByKeyFailureProps<TModel>) => DeleteByKeyFailure<TModel>>;

deleteManyByKeys: ActionCreator<string, (props: DeleteManyByKeysProps<TModel>) => DeleteManyByKeys<TModel>>;
deleteManyByKeysSuccess: ActionCreator<string, (props: DeleteManyByKeysProps<TModel>) => DeleteManyByKeysSuccess<TModel>>;
Expand Down

0 comments on commit 9b66bd6

Please sign in to comment.