Skip to content

Commit

Permalink
Add toArray feature (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki authored Jan 11, 2023
1 parent 5a0e160 commit ae2bb49
Show file tree
Hide file tree
Showing 14 changed files with 309 additions and 69 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

# 0.1.10

- Add `@ppx_ts.toArray` feature

# 0.1.9

- Build the executable with static linking for Linux with musl
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ type t_omit_name = {
}
```

#### `toArray`

```rescript
@ppx_ts.toArray
type t = Name | Age
// automatically generated
let t_toArray = ["Name", "Age"]
```

### Extension `%`

#### `keyOf`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greenlabs/ppx-ts",
"version": "0.1.9",
"version": "0.1.10",
"description": "ReScript PPX helps binding to typescript modules",
"license": "MIT",
"author": "Greenlabs Dev <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion ppx_ts.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.1.9"
version: "0.1.10"
synopsis: "A PPX helps binding to typescript modules"
description: ""
maintainer: ["[email protected]"]
Expand Down
15 changes: 15 additions & 0 deletions rescript/__tests__/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion rescript/__tests__/test.res

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ae2bb49

Please sign in to comment.