-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
let tagName;
switch (kind) {
case ListKind.Ordered:
tagName = 'ol';
break;
case ListKind.Unordered:
tagName = 'ul';
break;
default:
assertNever(kind);
}
- The inferred type of
tagNameisstring|undefined, but should bestring, AFAICT. - Similarly: If I give
tagNamethe typestring, I get the error: “Variable 'tagName' is used before being assigned”.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created