From 0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 29 Aug 2021 17:53:25 +0100 Subject: Dynamic JS --- src/gleam/dynamic.gleam | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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) -- cgit v1.2.3