-
Notifications
You must be signed in to change notification settings - Fork 39.4k
Autocomplete for string-indexed members even from dot-notation #36429
Copy link
Copy link
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Sometimes the keys of a map-object are not valid typescript identifiers, yet they are strongly typed members still. Invoking autocomplete within
['']does suggest them and, as you know, the string indexer is fully type-checked in such a situation.Supposing I have members
hello,returnanddeleteon an object, can they be suggested in the dot-notation autocomplete as well and then just automatically converted to indexer form since?