Skip to content

Commit

Permalink
fix: incorrect typing for vue plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Oct 26, 2024
1 parent e5fb963 commit a2460d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-lizards-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tuyau/inertia': patch
---

Incorrect typing for vue plugin
7 changes: 2 additions & 5 deletions packages/inertia/src/vue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -14,10 +14,7 @@ export function getClientKey(key?: string) {
}

export const TuyauPlugin = {
install: <D extends Record<string, any>, R extends GeneratedRoutes>(
app: any,
options: { client: TuyauClient<D, R> },
) => {
install: (app: any, options: { client: { $url: any } }) => {
app.provide(getClientKey(), options.client)
},
}
Expand Down

0 comments on commit a2460d0

Please sign in to comment.