I have an Object like this that is created by underscore's _.groupBy()
method.
myObject = {
"key" : [{Object},{Object2},{Object3}],
"key2" : [{Object4},{Object5},{Object6}],
...
}
How would I define that as an Interface with TypeScript?
i don't want to simply define it as myObject:Object = { ...
but rather have an own type for it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…