I'm creating a Map whose entries each hold an array of strings. How can I declare its type and initialize it together in one statement?
My (naive) attempt was:
private _rowEntries:Map<string, Array<string>> = {"3": ["sampleA"]};
which produces:
Module build failed: Error: /Users/arden/Work/controlpanel/src/app/core/rows.service.ts (12,7): Type '{ "3": string[]; }' is not assignable to type 'Map<string, string[]>'.