logux
logux copied to clipboard
Add actionCreator support to Log#type
import { loguxSubscribe } from '@logux/actions'
log.type(loguxSubscribe, action => {
action // TypeScript will think that it is LoguxSubscribeAction
})
Server#type from @logux/server types and implementation can be used as example.