From 073d6d8c14ded7c97bb06b3308653b4148e6bb42 Mon Sep 17 00:00:00 2001 From: erik-krogh Date: Wed, 23 Oct 2024 16:50:23 +0200 Subject: [PATCH] have getId always return null if skipExtractingTypes is set --- javascript/extractor/lib/typescript/src/type_table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript/extractor/lib/typescript/src/type_table.ts b/javascript/extractor/lib/typescript/src/type_table.ts index 42eaedf4ab63..4a00dfcc9c7f 100644 --- a/javascript/extractor/lib/typescript/src/type_table.ts +++ b/javascript/extractor/lib/typescript/src/type_table.ts @@ -435,6 +435,7 @@ export class TypeTable { * Returns `null` if we do not support extraction of this type. */ public getId(type: ts.Type, unfoldAlias: boolean): number | null { + if (this.skipExtractingTypes) return null; let cached = this.idCache.get(type) ?? [undefined, undefined]; let cachedValue = cached[unfoldAlias ? 1 : 0]; if (cachedValue !== undefined) return cachedValue;