elm-pages-v3-beta/examples/hello/index.ts
2022-03-09 15:06:49 -08:00

17 lines
371 B
TypeScript

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;