-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Declaring types in libdef does not detect some errors, declaring them locally works well #4342
Comments
I’m not sure if Could you put together an example in a small GitHub repo? |
@calebmer thank you for help, seems like you are right and declare module does not work inside
Except After run See screenshots src/goodCompose.jssrc/badCompose.js |
You are actually getting the expected error here 😊
I agree that this error message is way to hard to diagnose, though 😖 |
The problem is not in error, the problem that it different for the same compose definition, and depends on compose location. |
is this still valid? |
The difference between libdef and local mode should be fixed a long time ago |
As an example
compose
functionhere works well
But if I move
compose
definition into library definition like here in some situation flow stopped to detect some errors.(It works well for a lot of other situations but don't work with current)
The text was updated successfully, but these errors were encountered: