I declare a type alias but cannot initialize it without creating an item:
type ModelState = [string, string[]];
const modelState: ModelState = [null,[]];
modelState["firstName"] = ["First name is required."];
TypeScript gives me an error "Type 'undefined[]' is not assignable to type '[string, string[]]'" if I try to initialize like this:
const modelState: ModelState = [];
What is the correct way?