@@ -34,7 +34,7 @@ if erlang {
34
34
35
35
if javascript {
36
36
external fn do_from ( anything) -> Dynamic =
37
- "../gleam_stdlib.js " "identity"
37
+ "../gleam_stdlib.mjs " "identity"
38
38
}
39
39
40
40
/// Unsafely casts a Dynamic value into any other type.
@@ -55,7 +55,7 @@ if erlang {
55
55
56
56
if javascript {
57
57
external fn do_unsafe_coerce ( Dynamic ) -> a =
58
- "../gleam_stdlib.js " "identity"
58
+ "../gleam_stdlib.mjs " "identity"
59
59
}
60
60
61
61
/// Checks to see whether a `Dynamic` value is a bit_string, and returns that bit string if
@@ -80,7 +80,7 @@ if erlang {
80
80
81
81
if javascript {
82
82
external fn decode_bit_string ( Dynamic ) -> Result ( BitString , DecodeError ) =
83
- "../gleam_stdlib.js " "decode_bit_string"
83
+ "../gleam_stdlib.mjs " "decode_bit_string"
84
84
}
85
85
86
86
/// Checks to see whether a `Dynamic` value is a string, and returns that string if
@@ -113,7 +113,7 @@ if erlang {
113
113
114
114
if javascript {
115
115
external fn decode_string ( Dynamic ) -> Result ( String , DecodeError ) =
116
- "../gleam_stdlib.js " "decode_string"
116
+ "../gleam_stdlib.mjs " "decode_string"
117
117
}
118
118
119
119
/// Return a string indicating the type of the dynamic value.
@@ -134,7 +134,7 @@ if erlang {
134
134
135
135
if javascript {
136
136
external fn do_classify ( Dynamic ) -> String =
137
- "../gleam_stdlib.js " "classify_dynamic"
137
+ "../gleam_stdlib.mjs " "classify_dynamic"
138
138
}
139
139
140
140
/// Checks to see whether a `Dynamic` value is an int, and returns that int if it
@@ -159,7 +159,7 @@ if erlang {
159
159
160
160
if javascript {
161
161
external fn decode_int ( Dynamic ) -> Result ( Int , DecodeError ) =
162
- "../gleam_stdlib.js " "decode_int"
162
+ "../gleam_stdlib.mjs " "decode_int"
163
163
}
164
164
165
165
/// Checks to see whether a `Dynamic` value is a float, and returns that float if
@@ -184,7 +184,7 @@ if erlang {
184
184
185
185
if javascript {
186
186
external fn decode_float ( Dynamic ) -> Result ( Float , DecodeError ) =
187
- "../gleam_stdlib.js " "decode_float"
187
+ "../gleam_stdlib.mjs " "decode_float"
188
188
}
189
189
190
190
/// Checks to see whether a `Dynamic` value is a bool, and returns that bool if
@@ -209,7 +209,7 @@ if erlang {
209
209
210
210
if javascript {
211
211
external fn decode_bool ( Dynamic ) -> Result ( Bool , DecodeError ) =
212
- "../gleam_stdlib.js " "decode_bool"
212
+ "../gleam_stdlib.mjs " "decode_bool"
213
213
}
214
214
215
215
/// Checks to see whether a `Dynamic` value is a list, and returns that list if it
@@ -237,7 +237,7 @@ if erlang {
237
237
238
238
if javascript {
239
239
external fn decode_list ( Dynamic ) -> Result ( List ( Dynamic ) , DecodeError ) =
240
- "../gleam_stdlib.js " "decode_list"
240
+ "../gleam_stdlib.mjs " "decode_list"
241
241
}
242
242
243
243
/// Checks to see whether a `Dynamic` value is a result, and returns that result if
@@ -267,7 +267,7 @@ if erlang {
267
267
268
268
if javascript {
269
269
external fn decode_result ( Dynamic ) -> Result ( Result ( a, e) , DecodeError ) =
270
- "../gleam_stdlib.js " "decode_result"
270
+ "../gleam_stdlib.mjs " "decode_result"
271
271
}
272
272
273
273
/// Checks to see whether a `Dynamic` value is a result of a particular type, and
@@ -379,7 +379,7 @@ if javascript {
379
379
Dynamic,
380
380
Decoder(a),
381
381
) -> Result(Option(a), DecodeError) =
382
- "../gleam_stdlib.js " "decode_option"
382
+ "../gleam_stdlib.mjs " "decode_option"
383
383
}
384
384
385
385
/// Checks to see if a `Dynamic` value is a map with a specific field, and returns
@@ -407,7 +407,7 @@ if erlang {
407
407
408
408
if javascript {
409
409
external fn decode_field(Dynamic, name) -> Result(Dynamic, DecodeError) =
410
- "../gleam_stdlib.js " "decode_field"
410
+ "../gleam_stdlib.mjs " "decode_field"
411
411
}
412
412
413
413
/// Checks to see if a `Dynamic` value is a tuple large enough to have a certain
@@ -487,13 +487,13 @@ if erlang {
487
487
488
488
if javascript {
489
489
external fn decode_tuple(Dynamic) -> Result(UnknownTuple, DecodeError) =
490
- "../gleam_stdlib.js " "decode_tuple"
490
+ "../gleam_stdlib.mjs " "decode_tuple"
491
491
492
492
external fn tuple_get(UnknownTuple, Int) -> Result(Dynamic, DecodeError) =
493
- "../gleam_stdlib.js " "tuple_get"
493
+ "../gleam_stdlib.mjs " "tuple_get"
494
494
495
495
external fn tuple_size(UnknownTuple) -> Int =
496
- "../gleam_stdlib.js " "length"
496
+ "../gleam_stdlib.mjs " "length"
497
497
}
498
498
499
499
/// Checks to see if a `Dynamic` value is a 2-element tuple.
@@ -840,7 +840,7 @@ if erlang {
840
840
841
841
if javascript {
842
842
external fn decode_map(Dynamic) -> Result(Map(Dynamic, Dynamic), DecodeError) =
843
- "../gleam_stdlib.js " "decode_map"
843
+ "../gleam_stdlib.mjs " "decode_map"
844
844
}
845
845
846
846
if erlang {
0 commit comments