mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
12 lines
384 B
TypeScript
12 lines
384 B
TypeScript
import ICommentJSON from '../../interfaces/json/IComment';
|
|
|
|
export const COMMENT_REQUEST_SUCCESS = 'COMMENT_REQUEST_SUCCESS';
|
|
export interface CommentRequestSuccessAction {
|
|
type: typeof COMMENT_REQUEST_SUCCESS;
|
|
comment: ICommentJSON;
|
|
}
|
|
|
|
export const commentRequestSuccess = (comment: ICommentJSON): CommentRequestSuccessAction => ({
|
|
type: COMMENT_REQUEST_SUCCESS,
|
|
comment,
|
|
}); |