elm-pages-v3-beta/examples/docs/index.js

13 lines
339 B
JavaScript
Raw Normal View History

2021-05-17 22:51:04 +03:00
/** @typedef {{load: (Promise<unknown>); flags: (unknown)}} ElmPagesInit */
2020-10-21 20:23:07 +03:00
2021-05-17 22:51:04 +03:00
/** @type ElmPagesInit */
export default {
2021-06-25 00:14:05 +03:00
load: async function (elmLoaded) {
const app = await elmLoaded;
// console.log("App loaded", app);
2021-05-17 22:51:04 +03:00
},
flags: function () {
2021-06-25 00:14:05 +03:00
return "You can decode this in Shared.elm using Json.Decode.string!";
2021-05-17 22:51:04 +03:00
},
};