nuxt-open-fetch
nuxt-open-fetch copied to clipboard
Add docs for disableNitroPlugin
https://github.com/enkot/nuxt-open-fetch/blob/main/src/module.ts#L32
It would be also nice to document the ${client} = useNitroApp() server functionality in general.
And also extending the type of useNitroApp(). Currently I'm solving this locally by adding a:
// open-api-fetch.d.ts
declare module 'nitropack' {
interface NitroApp {
$pets: OpenFetchClient<PetsPaths>
}
}
export {}
@letoast Updated the docs - https://nuxt-open-fetch.vercel.app/utils/dollarclient. Types should work out of the box, could you please recheck?