I have a type delared like this:
export type monetaryValue = {
currency?: string;
value?: string;
};
How can I iterate over the declared properties? The actual goal I'm trying to achieve is to check if an object deserialized from JSON contains all properties of given type (all are not undefined).