We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TS18022, sharp
Sharp notation for private method must be alloweded : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields#Private_instance_methods
class Test { #test() {} }
class Test { #test() {} } => TS18022: A method cannot be named with a private identifier.
My suggestion meets these guidelines:
Search Terms
TS18022, sharp
Suggestion
Sharp notation for private method must be alloweded : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_fields#Private_instance_methods
Use Cases
class Test {
#test() {}
}
Examples
class Test {
#test() {}
}
=> TS18022: A method cannot be named with a private identifier.
Checklist
My suggestion meets these guidelines: