Merge branch 'develop' into chore.migrate-redux-server-to-ts
This commit is contained in:
commit
30b8becac1
|
@ -1,8 +0,0 @@
|
||||||
import * as types from './actionsTypes';
|
|
||||||
|
|
||||||
export function replyBroadcast(message) {
|
|
||||||
return {
|
|
||||||
type: types.MESSAGES.REPLY_BROADCAST,
|
|
||||||
message
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
import { Action } from 'redux';
|
||||||
|
|
||||||
|
import { MESSAGES } from './actionsTypes';
|
||||||
|
|
||||||
|
type IMessage = Record<string, string>;
|
||||||
|
|
||||||
|
interface IReplyBroadcast extends Action {
|
||||||
|
message: IMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function replyBroadcast(message: IMessage): IReplyBroadcast {
|
||||||
|
return {
|
||||||
|
type: MESSAGES.REPLY_BROADCAST,
|
||||||
|
message
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue