@@ -29,7 +29,7 @@ In this release, we make the `bs.` prefix optional, this will make the FFI less
29
29
For example, the old externals for ` readFileAsUtf8Sync ` used to be written like this
30
30
31
31
32
- <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML (Older Syntax) " ]} >
32
+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML Syntax" ]} >
33
33
34
34
``` res
35
35
@bs.val @bs.module("fs")
@@ -48,7 +48,7 @@ external readFileAsUtf8Sync : string -> (_[@bs.as "utf8"]) -> string = "readFile
48
48
49
49
It can now be simplified as
50
50
51
- <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML (Older Syntax) " ]} >
51
+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML Syntax" ]} >
52
52
53
53
``` res
54
54
@val @module("fs") external readFileAsUtf8Sync: (string, @as("utf8") _) => string = "readFileSync"
@@ -78,7 +78,7 @@ backward compatibility.
78
78
79
79
If you use es6 module output, the default bindings will be compiled properly now:
80
80
81
- <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML (Older Syntax) " ]} >
81
+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML Syntax" ]} >
82
82
83
83
``` res
84
84
@module("hello") external input: string => string = "default"
@@ -133,7 +133,7 @@ for example, Next.js/React Native, we allow file names like `404.res`,
133
133
134
134
Previously, for code like this:
135
135
136
- <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML (Older Syntax) " ]} >
136
+ <CodeTab labels = { [" ReScript" , " Reason (Old Syntax)" , " ML Syntax" ]} >
137
137
138
138
``` res
139
139
module N = {
0 commit comments