Skip to content

Commit

Permalink
adapt types
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmrts committed Dec 23, 2024
1 parent a055436 commit e3888a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/fs_routes/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { WalkEntry } from "@std/fs/walk";
import * as path from "@std/path";
import type { RouteConfig } from "../../types.ts";
import type { RouteHandler } from "../../handlers.ts";
import type { MiddlewareFn } from "../../middlewares/mod.ts";
import type { Middleware, MiddlewareFn } from "../../middlewares/mod.ts";
import {
type AsyncAnyComponent,
renderMiddleware,
Expand Down Expand Up @@ -35,8 +35,7 @@ export interface FreshFsItem<State> {
default?:
| AnyComponent<PageProps<unknown, State>>
| AsyncAnyComponent<PageProps<unknown, State>>
| ((ctx: FreshReqContext<{ text: string }>) => Promise<Response>)
| ((ctx: FreshReqContext<{ text: string }>) => Promise<Response>)[];
| Middleware<State>;
}

// deno-lint-ignore no-explicit-any
Expand Down

0 comments on commit e3888a3

Please sign in to comment.