Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Optional typed router #9

Open
Open
Labels
enhancementNew feature or request
@homoky

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /