You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/js_of_ocaml.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,7 @@ The documentation for the `ts2ocaml` command and its options comes after the wal
15
15
16
16
`ts2ocaml` for `js_of_ocaml` generates `.mli` files, which should then be processed with [`LexiFi/gen_js_api`](https://github.com/LexiFi/gen_js_api).
17
17
18
-
You should use the latest `gen_js_api` as `ts2ocaml` uses the latest features of `gen_js_api`.
19
-
As of Oct 2021, most of the required features have not been present in the latest version in opam.
20
-
So you would have to either do
21
-
22
-
*`opam pin add gen_js_api https://github.com/LexiFi/gen_js_api.git`**(recommended)**, or
23
-
*`git submodule`[their repository](https://github.com/LexiFi/gen_js_api) to the `lib` directory of your OCaml project.
24
-
- Note that if you use `gen_js_api` via a submodule, it might conflict with [`ts2ocaml-jsoo-stdlib`](#using-ts2ocaml-jsoo-stdlib-package) which is installed via `ocaml pin add`.
25
-
- Therefore, this would work only if you are going to do [`ts2ocaml jsoo --create-minimal-stdlib`](#using---create-minimal-stdlib--create-minimal-stdlib).
18
+
You should use `gen_js_api` version 1.0.9 or higher, as `ts2ocaml` uses the latest features of `gen_js_api`.
26
19
27
20
## Adding the standard library
28
21
@@ -40,8 +33,7 @@ To fulfill both needs, we've made two ways to add the standard library.
40
33
41
34
This package contains the full bindings for JS, DOM, and Web Worker API, generated with the [`full` preset](#choosing-a-preset).
42
35
43
-
As described in [Requirements](#requirements), `ts2ocaml` needs the latest `gen_js_api`, which is still not present in OPAM repository.
44
-
So, `ts2ocaml-jsoo-stdlib` is currently **not in OPAM repository**.
36
+
`ts2ocaml-jsoo-stdlib` is currently **not in OPAM repository**.
45
37
46
38
To install it to your OPAM switch, we recommend you to use [`opam pin`](https://opam.ocaml.org/doc/Usage.html#opam-pin).
0 commit comments