3 ms·
You can always make a generic Interface ObjMap<T> = {[name: string]: T} And the use it as const intMap: ObjMap<int> and voila!
by nojvek 7y ago
You can always make a generic
Interface ObjMap<T> = {[name: string]: T}
And the use it as const intMap: ObjMap<int> and voila!