lml-main
Version:
This is now a mono repository published into many standalone packages.
15 lines (10 loc) • 429 B
text/typescript
import { PusherMetadataModel } from '../interfaces'
export const SET_PUSHER_METADATA = '@@pusher/SET_METADATA'
export interface SetPusherMetadataAction {
type: '@@pusher/SET_METADATA'
channel: string
metadata: PusherMetadataModel
}
export const setMetadata =
(channel: string, metadata: PusherMetadataModel): SetPusherMetadataAction =>
({ type: SET_PUSHER_METADATA, channel, metadata })