fix: remove Data from FreshContext (#2473)

This is now only on `PageProps`.
This commit is contained in:
Luca Casonato
2024-05-31 13:50:28 +02:00
committed by GitHub
parent dc283a137b
commit 8d85945da6
16 changed files with 131 additions and 124 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ export function isHandlerByMethod<D, S>(
* ```
*/
export interface HandlerFn<Data, State> {
(ctx: FreshContext<Data, State>):
(ctx: FreshContext<State>):
| Response
| PageResponse<Data>
| Promise<Response | PageResponse<Data>>;