All files / store/reducers/comments comments-actions.ts

0% Statements 0/6
100% Branches 0/0
100% Functions 0/0
0% Lines 0/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10                   
import { makeActionCreator } from '@/helpers/actionHelper';
import { HNItem } from '@/types/hackernews';
 
export const fetchComments = makeActionCreator<number>('COMMENTS_FETCH');
export const fetchCommentsSuccess = makeActionCreator<Partial<HNItem>[]>('COMMENTS_FETCH_SUCCESS');
export const fetchCommentsFailure = makeActionCreator<string>('COMMENTS_FETCH_FAILURE');
export const loadCommentItem = makeActionCreator<number>('COMMENTS_LOAD_ITEM');
export const updateCommentItem = makeActionCreator<Partial<HNItem>>('COMMENTS_UPDATE_ITEM');
export const resetComments = makeActionCreator('COMMENTS_RESET');