We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ba2e7 commit c797bd2Copy full SHA for c797bd2
src/compiler/checker.ts
@@ -29935,7 +29935,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
29935
const inConstContext = isConstContext(node);
29936
const checkFlags = inConstContext ? CheckFlags.Readonly : 0;
29937
const isInJavascript = isInJSFile(node) && !isInJsonFile(node);
29938
- const enumTag = getJSDocEnumTag(node);
+ const enumTag = isInJavascript ? getJSDocEnumTag(node) : undefined;
29939
const isJSObjectLiteral = !contextualType && isInJavascript && !enumTag;
29940
let objectFlags: ObjectFlags = freshObjectLiteralFlag;
29941
let patternWithComputedProperties = false;
0 commit comments