diff --git a/.changeset/orange-lizards-visit.md b/.changeset/orange-lizards-visit.md new file mode 100644 index 0000000..1ea1d23 --- /dev/null +++ b/.changeset/orange-lizards-visit.md @@ -0,0 +1,5 @@ +--- +'@tuyau/inertia': patch +--- + +Incorrect typing for vue plugin diff --git a/packages/inertia/src/vue/index.tsx b/packages/inertia/src/vue/index.tsx index 1e83255..1af3f10 100644 --- a/packages/inertia/src/vue/index.tsx +++ b/packages/inertia/src/vue/index.tsx @@ -2,7 +2,7 @@ import { defineComponent, h, inject } from 'vue' import type { DefineSetupFnComponent } from 'vue' import { Link as InertiaLink } from '@inertiajs/vue3' import type { InertiaLinkProps } from '@inertiajs/vue3' -import type { GeneratedRoutes, RouteName, TuyauClient } from '@tuyau/client' +import type { RouteName, TuyauClient } from '@tuyau/client' import type { ValidatedApi, LinkParams } from '../types.js' @@ -14,10 +14,7 @@ export function getClientKey(key?: string) { } export const TuyauPlugin = { - install: , R extends GeneratedRoutes>( - app: any, - options: { client: TuyauClient }, - ) => { + install: (app: any, options: { client: { $url: any } }) => { app.provide(getClientKey(), options.client) }, }