@adonisjs/inertia 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/config.stub CHANGED
@@ -2,8 +2,9 @@
2
2
  exports({ to: app.configPath('inertia.ts') })
3
3
  }}}
4
4
  import { defineConfig } from '@adonisjs/inertia'
5
+ import type { InferSharedProps } from '@adonisjs/inertia/types'
5
6
 
6
- export default defineConfig({
7
+ const inertiaConfig = defineConfig({
7
8
  /**
8
9
  * Path to the Edge view that will be used as the root view for Inertia responses
9
10
  */
@@ -24,3 +25,9 @@ export default defineConfig({
24
25
  entrypoint: '{{ ssrEntrypoint }}'
25
26
  }
26
27
  })
28
+
29
+ export default inertiaConfig
30
+
31
+ declare module '@adonisjs/inertia/types' {
32
+ export interface SharedProps extends InferSharedProps<typeof inertiaConfig> {}
33
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/inertia",
3
3
  "description": "Official Inertia.js adapter for AdonisJS",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },