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

12 lines
291 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 {
load: function (elmLoaded) {
document.addEventListener("DOMContentLoaded", function (event) {});
},
flags: function () {
return "Hello from flags!";
},
};