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
Incorrect access modifier for SymbolConstructor.observable #39
Comments
I would like to see this one fixed. Should I create a PR for this? |
Thanks @mgroenhoff, that would be great. |
I'm having a bit of trouble fixing this because it is a little more complicated that just prefixing This is a subset if the dependency tree:
Using
Types of both versions of declare global {
interface SymbolConstructor {
observable: symbol;
}
} So if I fix The proper way to fix this seems to first fix and release the earlier versions of |
@mgroenhoff Thanks for the research, intern are in the process of removing their dojo dependencies (partially for these complex dependency reasons), so once that has been completed and released we should be able to fix framework. |
I noticed @agubler That would indeed make things a lot easier! |
For reference theintern/intern#936 is the issue to remove intern's domo dependency. The symbol definition should still be updated to be Lines 6 to 8 in 07bdc06
|
Correct. But that can only be done after |
@jason0x43 commented on Fri Jun 29 2018
Bug
SymbolConstrutor.observable
has the default access modifier in @dojo/shim, but should bereadonly
. Currently it conflicts with recent node typings, which specifically flagobservable
asreadonly
.Previous versions of the Node typings (< 10, 10.x before May) didn't include the
observable
property onSymbolConstructor
, so fixing this shouldn't cause issues with code using older Node typings.See also: theintern/intern#932
Package Version:
2.0.0
Code
Create a project that includes @dojo/shim@2.0.0 and @types/node@10.5.1 and try to build it.
Expected behavior:
It compiles.
Actual behavior:
The text was updated successfully, but these errors were encountered: