-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
type foo = 'hey' | 'nay';
let value : foo = 'hey';
switch (value) {
case 'hey': doThis(); break;
case 'nay': doThat(); break;
default: void; // <-- syntax TBD that indicates: 1. no other than known options are allowed 2. all known options must be considered
}
tinganho, ciuncan, inad9300, krzkaczor and brunolemos
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript