mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-29 19:30:34 +01:00
fix: eslint errors
This commit is contained in:
@@ -20,11 +20,11 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||||||
...headers,
|
...headers,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetch: (input, options) =>
|
fetch: (input, options) =>
|
||||||
globalThis.$fetch.raw(input.toString(), options).then(response => ({
|
globalThis.$fetch.raw(input.toString(), options).then(response => ({
|
||||||
...response,
|
...response,
|
||||||
json: () => Promise.resolve(response._data),
|
json: () => Promise.resolve(response._data),
|
||||||
}))
|
})),
|
||||||
})
|
})
|
||||||
|
|
||||||
nuxtApp.provide('client', client)
|
nuxtApp.provide('client', client)
|
||||||
|
|||||||
Reference in New Issue
Block a user