license import { TypedActionDefinition2 } from "./TypedActionDefinition2" ; param type export function defineAction < E extends string > ( type ) { return < T = undefined > ( ) : TypedActionDefinition2 < E , T > => { const retval = function ( payload , meta ) { return arguments . length === 2 ? { type , payload , meta } : { type , payload } ; } as any ; retval . TYPE = type as any ; return retval ; } ; }