Open
Description
Package version
1.2.2
Describe the bug
When augmenting the SharedProps interface like shown in the documentation, an error is raised by the usePage<SharedProps>()
hook.
tsserver: Type 'SharedProps' does not satisfy the constraint 'PageProps'.
Index signature for type 'string' is missing in type 'SharedProps'. [2344]
Passing any value into the module augmentation causes it to break
declare module '@adonisjs/inertia/types' {
export interface SharedProps extends InferSharedProps<typeof inertiaConfig> {
props2: string
}
}
If prop2: string is removed then the error above goes away

Reproduction repo
No response