elm-pages-v3-beta/examples/blog-engine/index.ts

17 lines
371 B
TypeScript
Raw Normal View History

type ElmPagesInit = {
load: (elmLoaded: Promise<unknown>) => Promise<void>;
flags: unknown;
};
const config: ElmPagesInit = {
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!";
},
};
export default config;