I have two classes like so.
class Stuff { constructor() { } things: Thing[] = []; name: string; } class Thing { constructor() { } active: boolean;
try to use <> or the as keyword for casting:
<>
as
blopp: Stuff[] = [ {name: "aa", things: [{active: true} as Thing , {active: false}as Thing]}, {name: "bb", things: null}]; }
or
blopp: Stuff[] = [ {name: "aa", things: [{active: true} , {active: false}]}, {name: "bb", things: null}]; }