diff --git a/src/App.ts b/src/App.ts index 9034cb22..369be2ad 100644 --- a/src/App.ts +++ b/src/App.ts @@ -42,7 +42,7 @@ export interface AppOptions { scriptHash?: string, } -type OnRouteCallback = (arg0: PageForClient, arg1: PageForClient, model: Model, params: PageParams, done?: () => void) => void; +type OnRouteCallback = (this: Page, page: Page, model: Model, params: PageParams, done?: () => void) => void; type Routes = [string, string, any][];