SpatialQueryType: typeof ComplexQuery & SpatialQueryExtension

SpatialQuery registers and implements all SpatialOperators using the geometry engine of the esri js api.

// This import ensures, that a ComplexQuery knows about the spatial operators.
import SpatialQuery from "store-api/SpatialQuery";

const testGeom = {};
const query = { geometry: { $intersects: testGeom } };
const options = {};
if (SpatialQuery.isSpatialQuery(query, options)) {
const complexQuery = SpatialQuery.parse(query, options);
// ...
}