I'm using automapper with Pojo strategy I have to define metadata for it, but "postalCode" field have a union type.
PojosMetadataMap.create<FrontendData>("FrontendData", {
address: String,
postalCode: null | number,
latitude: Number,
longitude: Number,
});
Unfortunately the syntax null postalCode: null | number does not work. I have looking in documentation but there was nothing about using union types with this strategy - https://automapperts.netlify.app/docs/strategies/pojos/. If you have solved a similar issue, I'd be thankful for your help