@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 +8 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
+
}
|