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 357e1e4 commit 7290307Copy full SHA for 7290307
1 file changed
test/fixture/types.ts
@@ -263,11 +263,13 @@ describe("API routes", () => {
263
>();
264
})
265
266
- it('produces correct $fetch.raw', async () => {
267
- const r = await $fetch.raw("/api/serialized/tuple")
+ it('produces correct $fetch.raw', () => {
268
expectTypeOf($fetch.raw("/api/serialized/tuple")).toEqualTypeOf<
269
Promise<FetchResponse<[string, string]>>
270
+ expectTypeOf($fetch.raw("/unknown")).toEqualTypeOf<
271
+ Promise<FetchResponse<unknown>>
272
+ >();
273
274
275
it('produces correctly typed new instance with $fetch.create', () => {
0 commit comments