Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional typed router #9

Open
homoky opened this issue Aug 29, 2022 · 0 comments
Open

Optional typed router #9

homoky opened this issue Aug 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@homoky
Copy link

homoky commented Aug 29, 2022

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
@jacobmischka jacobmischka added the enhancement New feature or request label Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants