import { Action } from './Action' ; import { ActionPayload } from './ActionPayload' ; export function createAction < T extends keyof ActionPayload > ( type , payload ) { return { type , payload , } ; }