Skip to content

Commit 36cb60b

Browse files
committed
Added the javascript side calls to the internal type as well, bumped version to 0.12.1
1 parent 3c39aca commit 36cb60b

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

bsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bucklescript-tea",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"bsc-flags": ["-bs-cross-module-opt"],
55
"package-specs": ["commonjs"],
66
"sources": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bucklescript-tea",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "TEA for Bucklescript",
55
"main": "index.js",
66
"scripts": {

src-ocaml/tea_app.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ type ('model, 'msg) pumpInterface = {
6262

6363
type 'msg programInterface = <
6464
pushMsg : 'msg -> unit;
65+
shutdown : unit -> unit;
66+
getHtmlString : unit -> string;
6567
> Js.t
6668

6769
external makeProgramInterface :

src-reason/tea_app.re

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ type pumpInterface('model, 'msg) = {
5555
shutdown: Tea_cmd.t('msg) => unit,
5656
};
5757

58-
type programInterface('msg) = {. "pushMsg": 'msg => unit};
58+
type programInterface('msg) = {
59+
.
60+
"pushMsg": 'msg => unit,
61+
"shutdown": unit => unit,
62+
"getHtmlString": unit => string,
63+
};
5964

6065
[@bs.obj]
6166
external makeProgramInterface:

0 commit comments

Comments
 (0)