@sanity/client 3.4.0 → 3.4.1
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/package.json +1 -1
- package/sanityClient.d.ts +8 -14
package/package.json
CHANGED
package/sanityClient.d.ts
CHANGED
|
@@ -1094,7 +1094,7 @@ export class ObservableSanityClient {
|
|
|
1094
1094
|
*
|
|
1095
1095
|
* @param query GROQ-query to perform
|
|
1096
1096
|
*/
|
|
1097
|
-
fetch<R
|
|
1097
|
+
fetch<R = any>(query: string): Observable<R>
|
|
1098
1098
|
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Perform a GROQ-query against the configured dataset.
|
|
@@ -1102,10 +1102,7 @@ export class ObservableSanityClient {
|
|
|
1102
1102
|
* @param query GROQ-query to perform
|
|
1103
1103
|
* @param params Query parameters
|
|
1104
1104
|
*/
|
|
1105
|
-
fetch<R
|
|
1106
|
-
query: string,
|
|
1107
|
-
params: QueryParams
|
|
1108
|
-
): Observable<R>
|
|
1105
|
+
fetch<R = any>(query: string, params: QueryParams): Observable<R>
|
|
1109
1106
|
|
|
1110
1107
|
/**
|
|
1111
1108
|
* Perform a GROQ-query against the configured dataset.
|
|
@@ -1114,7 +1111,7 @@ export class ObservableSanityClient {
|
|
|
1114
1111
|
* @param params Query parameters
|
|
1115
1112
|
* @param options Request options
|
|
1116
1113
|
*/
|
|
1117
|
-
fetch<R
|
|
1114
|
+
fetch<R = any>(
|
|
1118
1115
|
query: string,
|
|
1119
1116
|
params: QueryParams | undefined,
|
|
1120
1117
|
options: FilteredResponseQueryOptions
|
|
@@ -1127,7 +1124,7 @@ export class ObservableSanityClient {
|
|
|
1127
1124
|
* @param params Query parameters
|
|
1128
1125
|
* @param options Request options
|
|
1129
1126
|
*/
|
|
1130
|
-
fetch<R
|
|
1127
|
+
fetch<R = any>(
|
|
1131
1128
|
query: string,
|
|
1132
1129
|
params: QueryParams | undefined,
|
|
1133
1130
|
options: UnfilteredResponseQueryOptions
|
|
@@ -1767,7 +1764,7 @@ export interface SanityClient {
|
|
|
1767
1764
|
*
|
|
1768
1765
|
* @param query GROQ-query to perform
|
|
1769
1766
|
*/
|
|
1770
|
-
fetch<R
|
|
1767
|
+
fetch<R = any>(query: string): Promise<R>
|
|
1771
1768
|
|
|
1772
1769
|
/**
|
|
1773
1770
|
* Perform a GROQ-query against the configured dataset.
|
|
@@ -1775,10 +1772,7 @@ export interface SanityClient {
|
|
|
1775
1772
|
* @param query GROQ-query to perform
|
|
1776
1773
|
* @param params Optional query parameters
|
|
1777
1774
|
*/
|
|
1778
|
-
fetch<R
|
|
1779
|
-
query: string,
|
|
1780
|
-
params: QueryParams
|
|
1781
|
-
): Promise<R>
|
|
1775
|
+
fetch<R = any>(query: string, params: QueryParams): Promise<R>
|
|
1782
1776
|
|
|
1783
1777
|
/**
|
|
1784
1778
|
* Perform a GROQ-query against the configured dataset.
|
|
@@ -1787,7 +1781,7 @@ export interface SanityClient {
|
|
|
1787
1781
|
* @param params Optional query parameters
|
|
1788
1782
|
* @param options Request options
|
|
1789
1783
|
*/
|
|
1790
|
-
fetch<R
|
|
1784
|
+
fetch<R = any>(
|
|
1791
1785
|
query: string,
|
|
1792
1786
|
params: QueryParams | undefined,
|
|
1793
1787
|
options: FilteredResponseQueryOptions
|
|
@@ -1800,7 +1794,7 @@ export interface SanityClient {
|
|
|
1800
1794
|
* @param params Optional query parameters
|
|
1801
1795
|
* @param options Request options
|
|
1802
1796
|
*/
|
|
1803
|
-
fetch<R
|
|
1797
|
+
fetch<R = any>(
|
|
1804
1798
|
query: string,
|
|
1805
1799
|
params: QueryParams | undefined,
|
|
1806
1800
|
options: UnfilteredResponseQueryOptions
|