mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-24 20:31:42 +03:00
17 lines
371 B
TypeScript
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;
|