Skip to content

[JavaScript] Required support for TSX const generics #4112

@MrFoxPro

Description

@MrFoxPro
export let useRouter = <const R extends Routes = {}>() => useContext(RouterContext as SolidContext<RouterContext<R>>)
// fails all the way down

microsoft/TypeScript#51865

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: SyntaxT: bugA bug in an existing language feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions