Skip to content

Objects.AllPaths typed as never with dictionaries #102

Open
@lars-berger

Description

@lars-berger
type MyDictionary = {
  [key: string]: {
    name: string;
    age: number;
  };
};

export type Paths = Call<Objects.AllPaths, MyDictionary>; // never

Expected behaviour IMO would be string | "${string}.name" | "${string}.age". Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions