refactor: changed Handlers type to MultiHandler (#1360)

This commit is contained in:
Aushwin
2023-06-28 12:52:48 +00:00
committed by GitHub
parent a30c6bdf5c
commit 851f8d60aa
26 changed files with 64 additions and 58 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export async function handler(
```ts
// routes/myHandler.ts
export const handler: Handlers<any, { data: string }> = {
export const handler: MultiHandler<any, { data: string }> = {
GET(_req, ctx) {
return new Response(`middleware data is ${ctx.state.data}`);
},