Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function createAction<T>(type: string): PayloadAction<T> {
- return { type };
- }
- export function createActionFunction<T>(action: PayloadAction<T>): ActionFunction<T> {
- return (payload: T) => ({ type: action.type, payload});
- }
Add Comment
Please, Sign In to add comment