ts-transformer-keys
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "ts-transformer-keys", | ||
"version": "0.1.0", | ||
"version": "0.2.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.3.0-dev.20170422" | ||
"typescript": "^2.3.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^2.3.0-dev" | ||
"typescript": "^2.3.1" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # ts-transformer-keys | ||
# Requirement | ||
TypeScript >= 2.3.0 | ||
TypeScript >= 2.3.1 | ||
@@ -70,6 +70,13 @@ # How to use this package | ||
* TypeScript 2.3.0-dev currently has a bug in transformation API, which prevents this package to work correctly in some cases. | ||
* https://github.com/Microsoft/TypeScript/issues/15192 | ||
* The `keys` function can only be used as a call expression. Writing something like `keys.toString()` results in a runtime error. | ||
* `keys` does not work with a dynamic type parameter, i.e., `keys<T>()` in the following code is converted to an empty array(`[]`). | ||
```ts | ||
class MyClass<T extends object> { | ||
keys() { | ||
return keys<T>(); | ||
} | ||
} | ||
``` | ||
# License | ||
@@ -76,0 +83,0 @@ |
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
7866
88