type ElmPagesInit = { load: (elmLoaded: Promise) => Promise; 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;