elm-pages-v3-beta/examples/docs/public/index.js
2021-06-24 14:14:05 -07: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!";
},
};