Skip to content

Commit

Permalink
Fix OnRouteCallback Page types
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 23, 2024
1 parent 6cd1ecd commit b7344bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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][];

Expand Down

0 comments on commit b7344bf

Please sign in to comment.