nitro-rpc-definition
v0.1.9
Published
Type-safe inference to the client by returning the handler to the rpc type
Downloads
108
Readme
Type-safe inference to the client by returning the handler to the rpc type
Installation
npm i --save nitro-rpc-definition/** nitro */
import rpc from 'nitro-rpc-definition'
export default defineNitroConfig({
modules: [rpc()],
});
/** nuxt */
export default defineNuxtConfig({
nitro: {
modules: [rpc()],
}
})You can find the d.ts file in the .nuxt folder in nuxt and in the .nitro folder in nuxt.
