gvergnaud / hotscript

A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.
3.51k stars 59 forks source link

`Objects.AllPaths` typed as `never` with dictionaries #102

Open lars-berger opened 1 year ago

lars-berger commented 1 year ago
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?