is there a way to have code like this compile and be type safe?
type ComplexObject = { primitive1: boolean; complex: { primitive2: string; primiti