fix: remove Data from FreshContext (#2473)
This is now only on `PageProps`.
This commit is contained in:
+1
-1
@@ -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>>;
|
||||
|
||||
Reference in New Issue
Block a user