Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0acebce

Browse files
authored
fix: update type & imports (#3638)
This pr is small fixed that update type declaration and import fromcodebase.
1 parenta1000cb commit0acebce

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-
readonlyinfo:Deno.ServeHandlerInfo|Deno.ServeHandlerInfo;
86+
readonlyinfo: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
importtype{MaybeLazy,Route,RouteConfig}from"./types.ts";
33
importtype{HandlerByMethod,RouteHandler}from"./handlers.ts";
44
importtype{Middleware}from"./middlewares/mod.ts";
5-
importtype{AsyncAnyComponent}from"./render.ts";
5+
importtype{AsyncAnyComponent,PageProps}from"./render.ts";
66
import{typeHandlerFn,isHandlerByMethod}from"./handlers.ts";
7-
importtype{PageProps}from"./render.ts";
87
import{
98
typeCommand,
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
exporttypeStringifiers=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
exportinterfaceRouter<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)

[8]ページ先頭

©2009-2025 Movatter.jp