Response type

A type alias for easily representing a response interface with or without a geojson helper. Also provides the raw response data in the response object.

type Response<D, R, G> = D & G extends UndefinedGeojson ? { rawResponse: R["_response"]; } : { rawResponse: R["_response"]; geojson: G; }