elm-pages/examples/docs/index.js
Dillon Kearns 8ee5b2a649 Add missing. (+2 squashed commits)
Squashed commits:
[ea4646e3] Fix two errors.
[31faf674] Add initial Vite SSR setup.
2022-02-21 09:30:31 -08:00

13 lines
339 B
JavaScript

/** @typedef {{load: (Promise<unknown>); flags: (unknown)}} ElmPagesInit */
/** @type ElmPagesInit */
export default {
load: async function (elmLoaded) {
const app = await elmLoaded;
// console.log("App loaded", app);
},
flags: function () {
return "You can decode this in Shared.elm using Json.Decode.string!";
},
};