File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export class Context<State> {
8383 data : unknown = undefined ;
8484 /** Error value if an error was caught (Default: null) */
8585 error : unknown | null = null ;
86- readonly info : Deno . ServeHandlerInfo | Deno . ServeHandlerInfo ;
86+ readonly info : Deno . ServeHandlerInfo ;
8787 /**
8888 * Whether the current Request is a partial request.
8989 *
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ import type { AnyComponent } from "preact";
22import type { MaybeLazy , Route , RouteConfig } from "./types.ts" ;
33import type { HandlerByMethod , RouteHandler } from "./handlers.ts" ;
44import type { Middleware } from "./middlewares/mod.ts" ;
5- import type { AsyncAnyComponent } from "./render.ts" ;
5+ import type { AsyncAnyComponent , PageProps } from "./render.ts" ;
66import { type HandlerFn , isHandlerByMethod } from "./handlers.ts" ;
7- import type { PageProps } from "./render.ts" ;
87import {
98 type Command ,
109 CommandType ,
Original file line number Diff line number Diff line change 11import {
2+ HOLE ,
23 INFINITY_NEG ,
34 INFINITY_POS ,
45 NAN ,
56 NULL ,
67 UNDEFINED ,
78 ZERO_NEG ,
89} from "./constants.ts" ;
9- import { HOLE } from "./constants.ts" ;
1010
1111export type Stringifiers = Record <
1212 string ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export interface RouteResult<T> {
4242
4343export interface Router < T > {
4444 add (
45- method : Method | "OPTIONS" | " ALL",
45+ method : Method | "ALL" ,
4646 pathname : string ,
4747 handlers : T [ ] ,
4848 ) : void ;
You can’t perform that action at this time.
0 commit comments