ts-transformer-keys
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "ts-transformer-keys", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Check equality of objects based on their contextual type in TypeScript", | ||
@@ -32,7 +32,7 @@ "main": "index.js", | ||
"mocha": "^3.2.0", | ||
"typescript": "^2.4.0-dev.20170428" | ||
"typescript": "^2.4.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^2.4.0-dev" | ||
"typescript": "^2.4.1" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # ts-transformer-keys | ||
# Requirement | ||
TypeScript >= 2.4.0-dev | ||
TypeScript >= 2.4.1 | ||
@@ -12,0 +12,0 @@ # How to use this package |
@@ -29,3 +29,7 @@ "use strict"; | ||
} | ||
var declaration = typeChecker.getResolvedSignature(node).declaration; | ||
var signature = typeChecker.getResolvedSignature(node); | ||
if (typeof signature === 'undefined') { | ||
return false; | ||
} | ||
var declaration = signature.declaration; | ||
return !!declaration | ||
@@ -32,0 +36,0 @@ && (declaration.getSourceFile().fileName === indexTs) |
@@ -32,3 +32,7 @@ import * as ts from 'typescript'; | ||
} | ||
const { declaration } = typeChecker.getResolvedSignature(node as ts.CallExpression); | ||
const signature = typeChecker.getResolvedSignature(node as ts.CallExpression); | ||
if (typeof signature === 'undefined') { | ||
return false; | ||
} | ||
const { declaration } = signature; | ||
return !!declaration | ||
@@ -35,0 +39,0 @@ && (declaration.getSourceFile().fileName === indexTs) |
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
8064
78