Say I have the following snippet:
interface State { alarms: Alarm[]; } export default class Alarms extends React.Component<{}, State> { state = { a
Would
alarms: [] as Alarm[]
work for Typescript and for you ?
See this question on how you can cast arrays in Typescript : TypeScript casting arrays