website/index.ts

16 lines
323 B
TypeScript
Raw Normal View History

2023-10-24 05:23:25 +07:00
type ElmPagesInit = {
load: (elmLoaded: Promise<unknown>) => Promise<void>;
flags: unknown;
};
const config: ElmPagesInit = {
load: async function (elmLoaded) {
await elmLoaded;
},
flags: function () {
return "You can decode this in Shared.elm using Json.Decode.string!";
},
};
export default config;