elm-pages-v3-beta/generator/template/public/index.js
2021-06-25 09:57:05 -07:00

13 lines
336 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!";
},
};