Skip to content

Commit 7bbd4a1

Browse files
authored
Merge pull request github#17831 from erik-krogh/skip-more-types
JS: have getId always return null if skipExtractingTypes is set
2 parents e16f354 + 073d6d8 commit 7bbd4a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/extractor/lib/typescript/src/type_table.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export class TypeTable {
435435
* Returns `null` if we do not support extraction of this type.
436436
*/
437437
public getId(type: ts.Type, unfoldAlias: boolean): number | null {
438+
if (this.skipExtractingTypes) return null;
438439
let cached = this.idCache.get(type) ?? [undefined, undefined];
439440
let cachedValue = cached[unfoldAlias ? 1 : 0];
440441
if (cachedValue !== undefined) return cachedValue;

0 commit comments

Comments
 (0)