deckgl-typings
deckgl-typings copied to clipboard
Export InitialViewStateProps
Would be nice to make this type public so it's easier to define objects that match the type. Is there any philosophy on which types are published and which aren't or is it on an as needed basis?
I'm trying to define a type that's returned from an API that includes a GeoJSON object as well as an InitialViewState
so I can refocus the map on whatever shape is provided in the GeoJSON object. For instance:
export interface Area {
id: number;
name: string;
data: GeoJSON.Geometry;
view: InitialViewStateProps;
}
As it stands now, I'd have to define a new type with those values.
Hi @strican , these types were originally generated and mostly incomplete. The community has been manually patching things in as needed. If you have a fix we'd gladly take a PR :)