aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-09-09 23:20:10 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-09-09 23:20:10 +0100
commit3231cfbd7daeb084e0867fe1578d83b9d230a4b8 (patch)
tree93ae73810928d50881e8ceada6ab359fcf6d9926
parent543e05fc914f24a4f609887b673b05dfa2879d88 (diff)
downloadlustre-3.0.0.tar.gz
lustre-3.0.0.zip
:bug: Fixed bug where 'destroy' wasn't properly marked as js-only.v3.0.03.0.0
-rw-r--r--lib/src/lustre.gleam2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/src/lustre.gleam b/lib/src/lustre.gleam
index 840b82a..4f8249a 100644
--- a/lib/src/lustre.gleam
+++ b/lib/src/lustre.gleam
@@ -77,6 +77,8 @@ pub fn start(
flags: flags,
) -> Result(fn(msg) -> Nil, Error)
+@target(javascript)
+///
@external(javascript, "./lustre.ffi.mjs", "destroy")
pub fn destroy(app: App(flags, model, msg)) -> Result(Nil, Error)