I have interface type:
interface IForm {
id: number;
name: string;
}
I need to write custom type to store this object:
let a = ["one": [IForm, IForm, IForm], "two": [IForm, IForm, IForm]]
How to build this in TypeScript?
In result I need to get all forms by key?
let forms = a["one"]; --> [IForm, IForm, IForm]
forms[0]; --> IForm
let a = [ ... ]. Do you mean curly braceslet a = { ... }?