InferGeoFeatureCollection<T>
type InferGeoFeatureCollection<T>: T extends GeoFeature<infer G, infer P> ? GeoFeatureCollection<G, P> : T extends GeoFeature<infer G, infer P>[] ? GeoFeatureCollection<G, P> : never;
Given a GeoFeature type, extract its feature collection type.
This is useful for "collecting" features into a single collection.
Type Parameters
Type Parameter |
---|
T |