declare type StringMap = {[key: string]: T}; declare type NumberMap = {[key: number]: T};