I find the naming of the type of the ViewportType property viewType a bit odd. Why not just calling it ViewType instead of ViewTypeType? Also, isn't it weird that it requires a deck.gl class as value? I would prefer a decoupling - make it a union of string literals. There is not even the flexibility to use any view type deck.gl provides, it is a fixed union of pre-selected class types - I only see disadvantages with this pattern. Open for discussion as the title suggests 😃
I find the naming of the type of the
ViewportTypepropertyviewTypea bit odd. Why not just calling itViewTypeinstead ofViewTypeType? Also, isn't it weird that it requires a deck.gl class as value? I would prefer a decoupling - make it a union of string literals. There is not even the flexibility to use any view type deck.gl provides, it is a fixed union of pre-selected class types - I only see disadvantages with this pattern. Open for discussion as the title suggests 😃