aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2021-08-29 17:53:25 +0100
committerLouis Pilfold <louis@lpil.uk>2021-08-29 17:53:25 +0100
commit0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d (patch)
tree6e70750a0b4948f30d4861ef6a0e9df7b54062c8 /src
parent8271e3de88c369a335489e9d1b31d205ffa0031e (diff)
downloadgleam_stdlib-0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d.tar.gz
gleam_stdlib-0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d.zip
Dynamic JS
Diffstat (limited to 'src')
-rw-r--r--src/gleam/dynamic.gleam10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam
index bf6afd1..98cbef0 100644
--- a/src/gleam/dynamic.gleam
+++ b/src/gleam/dynamic.gleam
@@ -1,3 +1,8 @@
+/// `Dynamic` data is data that we don't know the type of yet.
+/// We likely get data like this from interop with Erlang, or from
+/// IO with the outside world.
+pub external type Dynamic
+
if erlang {
import gleam/bit_string
import gleam/list
@@ -6,11 +11,6 @@ if erlang {
import gleam/result
import gleam/string_builder
- /// `Dynamic` data is data that we don't know the type of yet.
- /// We likely get data like this from interop with Erlang, or from
- /// IO with the outside world.
- pub external type Dynamic
-
/// Error returned when unexpected data is encountered
pub type DecodeError {
DecodeError(expected: String, found: String)