Skip to content

Commit

Permalink
Fix types in Svelte adapter (#2005)
Browse files Browse the repository at this point in the history
* Export ResolvedComponent type

* Make setup callback optional for when in SSR mode
  • Loading branch information
pedroborges authored Oct 9, 2024
1 parent 39f6877 commit 2e93156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/createInertiaApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type AppComponent = ComponentType<App> & { render: () => SvelteRenderResult }
interface CreateInertiaAppProps {
id?: string
resolve: ComponentResolver
setup: (props: {
setup?: (props: {
el: Element
App: ComponentType<App>
props: {
Expand Down
1 change: 1 addition & 0 deletions packages/svelte/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export { default as createInertiaApp } from './createInertiaApp'
export { default as inertia } from './link'
export { default as page } from './page'
export { default as remember } from './remember'
export { type ResolvedComponent } from './types'
export { default as useForm, type InertiaForm, type InertiaFormProps } from './useForm'

0 comments on commit 2e93156

Please sign in to comment.