aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/src/lustre.gleam3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/src/lustre.gleam b/lib/src/lustre.gleam
index a8bdfd9..209af29 100644
--- a/lib/src/lustre.gleam
+++ b/lib/src/lustre.gleam
@@ -52,6 +52,7 @@ pub type App(flags, model, msg)
pub type Error {
AppAlreadyStarted
AppNotYetStarted
+ BadComponentName
ComponentAlreadyRegistered
ElementNotFound
NotABrowser
@@ -248,7 +249,7 @@ pub fn start(
) -> Result(fn(msg) -> Nil, Error)
@external(javascript, "./lustre.ffi.mjs", "destroy")
-pub fn destroy(app: App(flags, model, msg)) -> Nil
+pub fn destroy(app: App(flags, model, msg)) -> Result(Nil, Error)
// UTILS -----------------------------------------------------------------------