Skip to content

Commit 073d6d8

Browse files
committed
have getId always return null if skipExtractingTypes is set
1 parent b9205b1 commit 073d6d8

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)