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

creates and uses cannot infer model type when given closures #3861

Open
ghsolomon opened this issue Dec 18, 2024 · 0 comments
Open

creates and uses cannot infer model type when given closures #3861

ghsolomon opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@ghsolomon
Copy link
Contributor

See screenshot below. When model class is passed directly, creates and uses accurately infer its type. However, when a closure that returns a model class is used, the inferred return type is CreatesSpec<any> / UsesSpec<any>:

Screenshot 2024-12-18 at 8 42 18 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant