Skip to content

Commit 0acebce

Browse files
authored
fix: update type & imports (#3638)
This pr is small fixed that update type declaration and import from codebase.
1 parent a1000cb commit 0acebce

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

packages/fresh/src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*

packages/fresh/src/fs_routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import type { AnyComponent } from "preact";
22
import type { MaybeLazy, Route, RouteConfig } from "./types.ts";
33
import type { HandlerByMethod, RouteHandler } from "./handlers.ts";
44
import type { Middleware } from "./middlewares/mod.ts";
5-
import type { AsyncAnyComponent } from "./render.ts";
5+
import type { AsyncAnyComponent, PageProps } from "./render.ts";
66
import { type HandlerFn, isHandlerByMethod } from "./handlers.ts";
7-
import type { PageProps } from "./render.ts";
87
import {
98
type Command,
109
CommandType,

packages/fresh/src/jsonify/stringify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
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

1111
export type Stringifiers = Record<
1212
string,

packages/fresh/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface RouteResult<T> {
4242

4343
export interface Router<T> {
4444
add(
45-
method: Method | "OPTIONS" | "ALL",
45+
method: Method | "ALL",
4646
pathname: string,
4747
handlers: T[],
4848
): void;

0 commit comments

Comments
 (0)