Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-transformer-keys

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-transformer-keys - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc