typescript-is
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -123,2 +123,14 @@ "use strict"; | ||
for (const baseType of baseTypes) { | ||
if (baseType.aliasTypeArguments && visitorContext.previousTypeReference !== baseType && baseType.target) { | ||
const typeReference = baseType; | ||
if (typeReference.aliasTypeArguments !== undefined && typeReference.target.aliasTypeArguments !== undefined) { | ||
const typeParameters = typeReference.target.aliasTypeArguments; | ||
const typeArguments = typeReference.aliasTypeArguments; | ||
for (let i = 0; i < typeParameters.length; i++) { | ||
if (typeParameters[i] !== typeArguments[i]) { | ||
mapping.set(typeParameters[i], typeArguments[i]); | ||
} | ||
} | ||
} | ||
} | ||
if (tsutils.isTypeReference(baseType) && baseType.target.typeParameters !== undefined && baseType.typeArguments !== undefined) { | ||
@@ -125,0 +137,0 @@ const typeParameters = baseType.target.typeParameters; |
{ | ||
"name": "typescript-is", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=6.14.4" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232604
2838