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

Closed
ghsolomon opened this issue Dec 18, 2024 · 0 comments · Fixed by #3877
Closed

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

ghsolomon opened this issue Dec 18, 2024 · 0 comments · Fixed by #3877
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
@lbwexler lbwexler linked a pull request Dec 27, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant