Skip to content

Commit 9d0169f

Browse files
committed
Switch from '@bs.string' to '@bs.inline' technique for 'encoding' argument; formatting changes.
1 parent a0d3cb0 commit 9d0169f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/StringDecoder.re

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
type t;
22
[@bs.new] [@bs.module "string_decoder"]
3-
external make:
4-
(
5-
[@bs.string]
6-
[ | `hex | `utf8 | `ascii | `latin1 | `base64 | `ucs2 | `base64 | `binary | `utf16le]
7-
) =>
8-
t =
9-
"StringDecoder";
3+
external make: StringEncoding.t => t = "StringDecoder";
104
[@bs.send] external end_: t => string = "end";
115
[@bs.send] external writeEnd: (t, Buffer.t) => string = "end";
126
[@bs.send] external write: (t, Buffer.t) => string = "write";

0 commit comments

Comments
 (0)