type MapWithDynamicKey <T extends string> = { [index in T]: string | string[]; } type IParams = 'job' | 'age' const asd: MapWithDynamicKey<IParams> = { 'job': 'asd', 'age': 'asd', }
Last updated 5 years ago
Was this helpful?