-
Notifications
You must be signed in to change notification settings - Fork 12.8k
An accessibility modifier cannot be used with a private identifier #44870
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
Comments
|
ho oki, i will take a look on doc to understand more ! |
Not quite, since they're not opposites.
Not that nearly, since |
I wanted to know if this transpiles down to a I know there's deep history here. The If we look at the ES3 target transpilation, we'll see that transpilation did indeed protect it's scope a bit more it seems by abstracting it out into a variable. This would just depend what context this was then ran it, but it wouldn't expose the property on the class instance. |
I did my deep dig on this; Im not sure how I feel about it exactly... <microsoft/TypeScript#44870 (comment)>
Suggestion
i think ts should allow the modifier
private
on a private identifier.for keep a kind of design correlation in a project.
Actually change a public identifier to #private , lint error on all ts private modifier

Is there a way to ignore this error in tsconfigu ?
i color all my
accessibility modifier
for fast nav, but private identifier lint error with the privateaccessibility modifier
!🔍 Search Terms
An accessibility modifier cannot be used with a private identifier
The text was updated successfully, but these errors were encountered: