Files
astuto/app/javascript/actions/Comment/requestComment.ts

12 lines
384 B
TypeScript
Raw Normal View History

2022-05-07 11:27:07 +02:00
import ICommentJSON from '../../interfaces/json/IComment';
export const COMMENT_REQUEST_SUCCESS = 'COMMENT_REQUEST_SUCCESS';
2019-09-26 16:03:41 +02:00
export interface CommentRequestSuccessAction {
type: typeof COMMENT_REQUEST_SUCCESS;
comment: ICommentJSON;
}
export const commentRequestSuccess = (comment: ICommentJSON): CommentRequestSuccessAction => ({
type: COMMENT_REQUEST_SUCCESS,
comment,
});