We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsonGet
jsonPost
unknown
1 parent 1828325 commit 04051caCopy full SHA for 04051ca
ui/frontend/actions.ts
@@ -150,13 +150,13 @@ export const reExecuteWithBacktrace = (): ThunkAction => dispatch => {
150
151
type FetchArg = Parameters<typeof fetch>[0];
152
153
-export function jsonGet(url: FetchArg) {
+export function jsonGet(url: FetchArg): Promise<unknown> {
154
return fetchJson(url, {
155
method: 'get',
156
});
157
}
158
159
-export function jsonPost<T>(url: FetchArg, body: Record<string, any>): Promise<T> {
+export function jsonPost(url: FetchArg, body: Record<string, any>): Promise<unknown> {
160
161
method: 'post',
162
body: JSON.stringify(body),
0 commit comments