@ealmansi/jagger
Advanced tools
Comparing version 0.1.30 to 0.1.31
@@ -170,7 +170,14 @@ import assert from "node:assert/strict"; | ||
.filter(isNotUndefined) | ||
.filter(ts.isTupleTypeNode) | ||
.flatMap((tupleTypeNode) => tupleTypeNode.elements) | ||
.filter(ts.isTypeReferenceNode) | ||
.map((typeReferenceNode) => typeReferenceNode.typeName) | ||
.map(typeChecker.getTypeAtLocation); | ||
.map(typeChecker.getTypeAtLocation) | ||
.flatMap((type) => { | ||
if (type.getFlags() & ts.TypeFlags.Object) { | ||
const objectType = type; | ||
if (objectType.objectFlags & ts.ObjectFlags.Reference) { | ||
const typeReference = type; | ||
const typeArguments = typeChecker.getTypeArguments(typeReference); | ||
return typeArguments; | ||
} | ||
} | ||
return []; | ||
}); | ||
return new Set(types); | ||
@@ -177,0 +184,0 @@ } |
{ | ||
"name": "@ealmansi/jagger", | ||
"version": "0.1.30", | ||
"version": "0.1.31", | ||
"description": "WIP", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
85672
960