-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
interface Foo {
bar?: {
baz?: string;
}
}
declare let foo: Foo | undefined;
[|foo && foo.bar && foo.bar.baz|]
It should be possible to convert that chain into the following:
interface Foo {
bar?: {
baz?: string;
}
}
declare let foo: Foo | undefined;
foo?.bar?.baz;
fatcerberus, EdenTurgeman, nicojs, BoruiGu, smakosh and 21 moreAnyhowStep, mgol, ascorbic, matijagrcic, capaj and 23 more
Metadata
Metadata
Assignees
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript