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.
1 parent 84710b8 commit b3310efCopy full SHA for b3310ef
templates/base/http-clients/ky-http-client.ejs
@@ -13,27 +13,6 @@ export type ResponsePromise<Data> = {
13
arrayBuffer: () => Promise<ArrayBuffer>;
14
blob: () => Promise<Blob>;
15
formData: () => Promise<FormData>;
16
- /**
17
- Get the response body as JSON.
18
-
19
- @example
20
- ```
21
- import ky from 'ky';
22
23
- const json = await ky(…).json();
24
25
26
27
28
29
30
- interface Result {
31
- value: number;
32
- }
33
34
- const result = await ky(…).json<Result>();
35
36
- */
37
json<T extends Data = Data>(): Promise<T>;
38
text: () => Promise<string>;
39
} & Promise<KyResponse<Data>>;
0 commit comments