I have idea how to implement the typed router. We could pass the type with list of available actions with defined required arguments for each action which can be used from linking from the table or redirecting:
type Actions = {
composers_list: undefined, // no arguments
composers_update: { id: string }
}
The type would force us to:
include those functins on those route namespace when inicializing interval
when redirecting or linking another action to autocomplete action name and also require action parameters
in action itsel if might pass the type to ctx.params
I have idea how to implement the typed router. We could pass the type with list of available actions with defined required arguments for each action which can be used from linking from the table or redirecting:
The type would force us to:
ctx.params