I would like to have a type that relates to an object with N level of nested keys and values being functions that returns strings.
Ideally I would like to have the value of the function being displayed in a tooltip instead of string type (od as a const shows me the value instead of string which I want) Like this bu this is very cumbersome.
const endpoints = {
hierarchy: {
od: () => `....` as const,
sd: () => `.....`,
},
a: { b: { c: (a: string) => 'asdsd' } },
} as const
How I can make a type that would resolve to such structure?
stringin my IDE. (Pls ping via @jcalz)