mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 03:11:30 +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;
|