Anonymous type member property '|1' cannot be used to infer the type of another member property because the type of '|1' ...