|
| 1 | +/* |
| 2 | + WARNING: This file is automatically generated and any changes made to it will be overwritten without warning. |
| 3 | + Do NOT manually edit this file or your changes will be lost. |
| 4 | +*/ |
| 5 | + |
| 6 | +import { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform } from "@marko/run/namespace"; |
| 7 | +import type * as Run from "@marko/run"; |
| 8 | +import type { NetlifyFunctionsPlatformInfo } from '@marko/run-adapter-netlify'; |
| 9 | + |
| 10 | +declare module "@marko/run" { |
| 11 | + interface Platform extends NetlifyFunctionsPlatformInfo {} |
| 12 | + |
| 13 | + interface AppData extends Run.DefineApp<{ |
| 14 | + routes: { |
| 15 | + "/": Routes["/"]; |
| 16 | + "/story/:id": Routes["/story/$id"]; |
| 17 | + "/user/:id": Routes["/user/$id"]; |
| 18 | + } |
| 19 | + }> {} |
| 20 | +} |
| 21 | + |
| 22 | +declare module "../src/routes/+page.marko" { |
| 23 | + namespace MarkoRun { |
| 24 | + export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform }; |
| 25 | + export type Route = Run.Routes["/"]; |
| 26 | + export type Context = Run.MultiRouteContext<Route> & Marko.Global; |
| 27 | + export type Handler = Run.HandlerLike<Route>; |
| 28 | + /** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */ |
| 29 | + export const route: Run.HandlerTypeFn<Route>; |
| 30 | + } |
| 31 | +} |
| 32 | + |
| 33 | +declare module "../src/routes/story.$id+page.marko" { |
| 34 | + namespace MarkoRun { |
| 35 | + export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform }; |
| 36 | + export type Route = Run.Routes["/story/:id"]; |
| 37 | + export type Context = Run.MultiRouteContext<Route> & Marko.Global; |
| 38 | + export type Handler = Run.HandlerLike<Route>; |
| 39 | + /** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */ |
| 40 | + export const route: Run.HandlerTypeFn<Route>; |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +declare module "../src/routes/user.$id+page.marko" { |
| 45 | + namespace MarkoRun { |
| 46 | + export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform }; |
| 47 | + export type Route = Run.Routes["/user/:id"]; |
| 48 | + export type Context = Run.MultiRouteContext<Route> & Marko.Global; |
| 49 | + export type Handler = Run.HandlerLike<Route>; |
| 50 | + /** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */ |
| 51 | + export const route: Run.HandlerTypeFn<Route>; |
| 52 | + } |
| 53 | +} |
| 54 | + |
| 55 | +declare module "../src/routes/+layout.marko" { |
| 56 | + export interface Input extends Run.LayoutInput<typeof import('../src/routes/+layout.marko')> {} |
| 57 | + namespace MarkoRun { |
| 58 | + export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform }; |
| 59 | + export type Route = Run.Routes["/" | "/story/:id" | "/user/:id"]; |
| 60 | + export type Context = Run.MultiRouteContext<Route> & Marko.Global; |
| 61 | + export type Handler = Run.HandlerLike<Route>; |
| 62 | + /** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */ |
| 63 | + export const route: Run.HandlerTypeFn<Route>; |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +type Routes = { |
| 68 | + "/": { verb: "get"; }; |
| 69 | + "/story/$id": { verb: "get"; }; |
| 70 | + "/user/$id": { verb: "get"; }; |
| 71 | +} |
0 commit comments