Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit 7af36fd

Browse files
committed
upgrade
1 parent a4c612f commit 7af36fd

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"devDependencies": {
3-
"bs-platform": "0.7.1"
3+
"bs-platform": "^0.8.0"
44
},
55
"scripts" : {
6-
"build" : "bsc -c test_http_server.ml"
6+
"build" : "bsc -I src -c -bs-files src/*.mli src/*.ml "
77
}
88
}

examples/node-http-server/test_http_server.ml examples/node-http-server/src/test_http_server.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

25-
[@@@bs.config{no_export; bs_class_type}]
25+
2626

2727
type req
2828

2929
class type _resp = object
3030
method statusCode : int [@@bs.set]
3131
method setHeader : string -> string -> unit
3232
method _end : string -> unit
33-
end
33+
end [@bs]
3434

3535
type resp = _resp Js.t
3636

3737
class type _server = object
3838
method listen : int -> string -> (unit -> unit [@bs]) -> unit
39-
end
39+
end [@bs]
4040
type server = _server Js.t
4141

4242
class type _http = object
4343
method createServer : (req -> resp -> unit [@bs] ) -> server
44-
end
44+
end [@bs]
4545

4646
type http = _http Js.t
4747

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(** *)

0 commit comments

Comments
 (0)