ts-runtime
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -278,7 +278,9 @@ "use strict"; | ||
let ref = ts.createIdentifier(text); | ||
let call = 'typeOf'; | ||
if (typeInfo.isTsrDeclaration()) { | ||
text = util.getHashedDeclarationName(text, typeInfo.sourceFile.fileName); | ||
ref = this.asRef(ts.createLiteral(text)); | ||
ref = ts.createLiteral(text); | ||
call = 'ref'; | ||
} | ||
return this.libCall('typeOf', ref); | ||
return this.libCall(call, ref); | ||
} | ||
@@ -285,0 +287,0 @@ typeLiteralReflection(node) { |
{ | ||
"name": "ts-runtime", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "Runtime type checks for TypeScript", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"docs": { | ||
"version": "0.1.21-0" | ||
"version": "0.1.22-0" | ||
} | ||
@@ -29,0 +29,0 @@ }, |
470038
10722