aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lustre.ffi.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/lustre.ffi.mjs')
-rw-r--r--lib/src/lustre.ffi.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/src/lustre.ffi.mjs b/lib/src/lustre.ffi.mjs
index 51a6e26..29a60a9 100644
--- a/lib/src/lustre.ffi.mjs
+++ b/lib/src/lustre.ffi.mjs
@@ -122,7 +122,8 @@ export class App {
}
export const setup = (init, update, render) => new App(init, update, render);
-export const start = (app, selector) => app.start(selector);
+export const start = (app, selector, flags) => app.start(selector, flags);
+export const destroy = (app) => app.destroy();
export const emit = (name, data) =>
// Normal `Effect`s constructed in Gleam from `effect.from` don't get told