-
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
Restore support for static interface properties #5590
Comments
Where are they used in mapbox-gl-js? Happy to take a look and recommend alternatives. |
Thanks @samwgoldman! The use that looks like it's going to require an |
Instead of a single |
Going to close this, but let me know if you run into any further issues. |
I have a similar problem: I define a Splitting The best thing I can think of is to replace |
@akalin Not sure what's best for you, but would another option be to add |
Yeah, that's another option. Pretty wordy, though. Thanks anyway! |
Static interface properties are used in Vue.js: https://github.com/vuejs/vue/blob/dev/flow/component.js#L7 |
Support for static properties on interfaces was removed in 0.62.0 because they were "never well supported, and in most cases their types were not actually checked".
Was there also a type theoretical basis for removing them, or was it merely pragmatic, as the changlog suggests? If the latter, I would like to request that they be well supported, and their types actually checked. mapbox-gl-js was relying in several places on them, and when upgrading to 0.62.0, it appears I will not only have to comment out or remove these properties, but also disable type checking with
any
casts where the properties are used.The text was updated successfully, but these errors were encountered: