I can't get this immutablejs map to error:
const alertModal: Map<AlertModalState> = Map(
{
'isAlertModalOpen': false,
'alertModalTitle': '',
'alertModalMessage': '',
'height': 0,
'hasYesNo': false
}
)
type AlertModalState = {
isAlertModalOpen: boolean,
alertModalTitle: string,
alertModalMessage: string,
height: number,
hasYesNo: boolean
}
When I change the properties to have different names, they still don't produce a flow error. Is this code valid or should it produce an error?