Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/fresh/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Context<State> {
data: unknown = undefined;
/** Error value if an error was caught (Default: null) */
error: unknown | null = null;
readonly info: Deno.ServeHandlerInfo | Deno.ServeHandlerInfo;
readonly info: Deno.ServeHandlerInfo;
/**
* Whether the current Request is a partial request.
*
Expand Down
3 changes: 1 addition & 2 deletions packages/fresh/src/fs_routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import type { AnyComponent } from "preact";
import type { MaybeLazy, Route, RouteConfig } from "./types.ts";
import type { HandlerByMethod, RouteHandler } from "./handlers.ts";
import type { Middleware } from "./middlewares/mod.ts";
import type { AsyncAnyComponent } from "./render.ts";
import type { AsyncAnyComponent, PageProps } from "./render.ts";
import { type HandlerFn, isHandlerByMethod } from "./handlers.ts";
import type { PageProps } from "./render.ts";
import {
type Command,
CommandType,
Expand Down
2 changes: 1 addition & 1 deletion packages/fresh/src/jsonify/stringify.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
HOLE,
INFINITY_NEG,
INFINITY_POS,
NAN,
NULL,
UNDEFINED,
ZERO_NEG,
} from "./constants.ts";
import { HOLE } from "./constants.ts";

export type Stringifiers = Record<
string,
Expand Down
2 changes: 1 addition & 1 deletion packages/fresh/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface RouteResult<T> {

export interface Router<T> {
add(
method: Method | "OPTIONS" | "ALL",
method: Method | "ALL",
pathname: string,
handlers: T[],
): void;
Expand Down
Loading