Skip to content

Misspelled properties with two leading underscores get an incorrect suggestion with an extra underscore at the beginning #17906

Description

@DanielRosenwasser
export declare let a: {
    __foo: 10,
}
    
a.___foo

Expected:

Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '__foo'?

Actual:

Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '___foo'?

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions