GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Apply uncalled function checks to ternaries · Issue #36048 · microsoft/TypeScript Closed Labels Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".SuggestionAn idea for TypeScriptAn idea for TypeScriptUpdate Docs on Next ReleaseIndicates that this PR affects docsIndicates that this PR affects docs Milestone DescriptionSearch Termsts2774 ternary condition error function called uncalled SuggestionTS2774 (implemented in #32802), i.e. the ExamplesNow: const isString = (value: unknown) => typeof value === "string" // Error (TS2774) if (isString) { } // No error isString ? true : false If this suggestion is adopted: const isString = (value: unknown) => typeof value === "string" // Error (TS2774) if (isString) { } // Error(TS2774) isString ? true : false ChecklistMy suggestion meets these guidelines:
Reacted by SlurpTheo, Diego Stratta and Karol Majewski Activity
MetadataMetadataAssigneesLabelsBreaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".SuggestionAn idea for TypeScriptAn idea for TypeScriptUpdate Docs on Next ReleaseIndicates that this PR affects docsIndicates that this PR affects docs TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |