I need assistance defining the value of a key in a map as a key-value pair in TypeScript.
map: {
key: someStruct
}
Is it possible to declare the type of someStruct
and initialize it simultaneously? What is the best approach for accomplishing this?