From 4fc9b9cc8ee8212f65cfc32321a9b56e2b442190 Mon Sep 17 00:00:00 2001 From: WoH Date: Thu, 5 Sep 2019 18:43:31 +0200 Subject: [PATCH] Generics: Drop context on References without Args --- src/metadataGeneration/typeResolver.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/metadataGeneration/typeResolver.ts b/src/metadataGeneration/typeResolver.ts index 60296c190..c471076e7 100644 --- a/src/metadataGeneration/typeResolver.ts +++ b/src/metadataGeneration/typeResolver.ts @@ -191,6 +191,8 @@ export class TypeResolver { this.context = { [typeParameter.name.text]: typeReference.typeArguments[index], ...this.context }; } } + } else { + this.context = {}; } referenceType = this.getReferenceType(typeReference.typeName as ts.EntityName, this.extractEnum, typeReference.typeArguments);