Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedProps does not infer types correctly #61

Open
jsardev opened this issue Jan 25, 2025 · 1 comment
Open

SharedProps does not infer types correctly #61

jsardev opened this issue Jan 25, 2025 · 1 comment

Comments

@jsardev
Copy link

jsardev commented Jan 25, 2025

Package version

3.0.1

Describe the bug

When using only SharedProps as props type in my React component, the types are not inferred correctly.

Image

Reproduction repo

https://github.com/jsardev/adonis-inertia-types-issue/blob/main/inertia/pages/home.tsx

@gribbl
Copy link

gribbl commented Feb 11, 2025

Shouldn't we add /// <reference path="../../config/auth.ts" /> in app/app.tsx?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants