From 81fc78eab90d77c1bc4d61e489be2293523d7417 Mon Sep 17 00:00:00 2001 From: Tom McKenzie Date: Sun, 7 Jan 2024 21:37:27 +1100 Subject: [PATCH] Add type check to ensure switch is exhaustive --- src/core/jsDocTags.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/jsDocTags.ts b/src/core/jsDocTags.ts index dbfda143..e6a734dd 100644 --- a/src/core/jsDocTags.ts +++ b/src/core/jsDocTags.ts @@ -208,6 +208,11 @@ export function getJSDocTags(nodeType: ts.Node, sourceFile: ts.SourceFile) { jsDocTags[tagName] = tag.comment; } break; + case "elementDescription": + case "strict": + break; + default: + tagName satisfies never; } }); });