File tree 3 files changed +4
-4
lines changed
next/language/error_codes
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- priv type JsArray
15
+ priv extern type JsArray
16
16
17
17
fn JsArray ::new () -> JsArray = "array" "new"
18
18
19
19
fn push (self : JsArray , charCode : Int ) = "array" "push"
20
20
21
- pub (all ) type JsString
21
+ pub (all ) extern type JsString
22
22
23
23
fn JsString ::from_char_code (charCode : JsArray ) -> JsString = "string" "fromCharCode"
24
24
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- pub (all ) type Canvas_ctx
15
+ pub (all ) extern type Canvas_ctx
16
16
17
17
fn body_color (grid : GridType ) -> String {
18
18
match grid {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ you can pass the int one by one to the host function and store the array on the
26
26
JS side.
27
27
28
28
``` moonbit
29
- type JsArray
29
+ extern type JsArray
30
30
fn make_js_array() -> JsArray = "mod" "make_js_array"
31
31
fn push_js_array(array : JsArray, value : Int) -> Unit = "mod" "push_js_array"
32
32
```
You can’t perform that action at this time.
0 commit comments