From 3231cfbd7daeb084e0867fe1578d83b9d230a4b8 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 9 Sep 2023 23:20:10 +0100 Subject: :bug: Fixed bug where 'destroy' wasn't properly marked as js-only. --- lib/src/lustre.gleam | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3