Skip to content

infer route params #1053

@huseeiin

Description

@huseeiin

Describe the feature

import { H3 } from "h3-nightly" // 2.0.0-20250428-102154-f1115f3;

const app = new H3();

app.get("/:user/id", (e) => {
  console.log(e.context.params); // Record<string, string> | undefined;
});

could this be helpful? https://github.com/lukeed/regexparam/blob/main/index.d.ts#L11

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions