VScode intellisense with typescript const objects
export type Entry = { pagename: string; path: string; datasource: string; }; export type BunchOfEntrys = { [key: string]: Entry; }; export const BunchOfEntrys: BunchOfEntrys = { NAME_1: { pagename: ‘Name 1’, path: ‘path/name1’, datasource: ‘data_name_1’, }, NAME_2: { pagename: ‘Name 2’, path: ‘path/name2’, datasource: ‘data_name_2’, }, } as const; If I type the BunchOfEntrys […]
TypeScript: VS Code’s intellisense for depending properties
I have this JSON: