xxxxxxxxxx
type State = {
name: string;
id: number | null;
capitol: City;
cities: City[];
};
type City = {
name: string;
id: number | null;
};
type StateWithoutIds = OptionalNullable<State>;
let test: StateWithoutIds = {
name: "Indiana",
capitol: { name: "Indianapolis" },
cities: [
{ name: "Indianapolis" },
{ name: "Fort Wayne" }
]
};