@greenlabs/ppx-ts
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@greenlabs/ppx-ts", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "ReScript PPX helps binding to typescript modules", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -94,2 +94,32 @@ # PPX_ts | ||
#### `pick` | ||
```rescript | ||
@ppx_ts.pick(["name"]) | ||
type t = { | ||
name: string, | ||
age: int | ||
} | ||
// automatically generated | ||
type t_pick_name = { | ||
name: string, | ||
} | ||
``` | ||
#### `omit` | ||
```rescript | ||
@ppx_ts.omit(["name"]) | ||
type t = { | ||
name: string, | ||
age: int | ||
} | ||
// automatically generated | ||
type t_omit_name = { | ||
age: int, | ||
} | ||
``` | ||
## Contribution | ||
@@ -96,0 +126,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
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
33312358
33
158