@carto/ps-react-maps 4.6.1 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1645 -1729
- package/dist/index.js.map +1 -1
- package/dist/types/models/types.d.ts +2 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseQueryResult, UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { AddFilterOptions, FormulaRequestOptions, CategoryRequestOptions, TimeSeriesRequestOptions, HistogramRequestOptions, AggregationsRequestOptions, RangeRequestOptions, ScatterRequestOptions, TableRequestOptions, FeaturesRequestOptions } from '@carto/api-client';
|
|
3
3
|
/**
|
|
4
4
|
* Helper type for multi-value support in Formula widget props.
|
|
@@ -162,7 +162,4 @@ export type ModelProps<W, R> = {
|
|
|
162
162
|
*/
|
|
163
163
|
sourcesId: string[];
|
|
164
164
|
});
|
|
165
|
-
export type ModelResponse<T =
|
|
166
|
-
promise: Promise<T[]>[];
|
|
167
|
-
refetch: () => Promise<RefetchOptions[]>;
|
|
168
|
-
};
|
|
165
|
+
export type ModelResponse<T = []> = UseQueryResult<T, Error>;
|