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

@greenlabs/ppx-ts

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greenlabs/ppx-ts - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "@greenlabs/ppx-ts",
"version": "0.1.5",
"version": "0.1.6",
"description": "ReScript PPX helps binding to typescript modules",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -136,2 +136,3 @@ # PPX_ts

@spice // attributes are available
type t1 = %ppx_ts.keyOf(Error.t) // type t1 = Name | Age

@@ -147,18 +148,2 @@

#### `toGeneric`
```rescript
type t = {
name: string,
age: int
}
type t1 = %ppx_ts.toGeneric(t)
// changed
type t1<'a> = {
name: 'a
age: 'a
}
```
#### `setType`

@@ -200,2 +185,38 @@

#### `toGeneric`
```rescript
type t = {
name: string,
age: int
}
@spice // attributes are available
type t1 = %ppx_ts.toGeneric(t)
// generated
type t1<'a> = {
name: 'a
age: 'a
}
```
#### `partial`
```rescript
type t = {
name: string,
age: int,
isKorean: bool
}
@spice // attributes are available
type t1 = %ppx_ts.partial(t)
// generated
type t1 = {
name: option<string>,
age: option<int>,
isKorean: option<bool>
}
```
## Contribution

@@ -202,0 +223,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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