Skip to content

Paths should handle Record types with arbitrary string keys #1190

@rhyek

Description

@rhyek

Currently, Paths<Record<string, { a: number; b: number; }>>; resolves to never. It should instead use template literal types and resolve to `${string}` | `${string}.a` | `${string}.b`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions