Open johngeorgewright opened 2 months ago
... or even better having the values available as an enum or object too.
export enum AdUnitView {
TOP_LEVEL = 'TOP_LEVEL',
FLAT = 'FLAT',
HIERARCHICAL = 'HIERARCHICAL'
}
...
/** AdUnitView|xsd:string */
adUnitView?: AdUnitView | keyof typeof AdUnitView
I'd like to suggest that enumerable strings be converted to unions.
For example:
Would become:
Rather than the current implementation: