mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 06:20:23 +00:00
Update query param typing
This commit is contained in:
Vendored
+4
-4
@@ -59,7 +59,7 @@ declare namespace next {
|
||||
req: http.IncomingMessage,
|
||||
res: http.ServerResponse,
|
||||
pathname: string,
|
||||
query?: { [key: string]: any },
|
||||
query?: { [key: string]: string | string[] },
|
||||
parsedUrl?: UrlLike,
|
||||
): Promise<void>;
|
||||
renderError(
|
||||
@@ -67,7 +67,7 @@ declare namespace next {
|
||||
req: http.IncomingMessage,
|
||||
res: http.ServerResponse,
|
||||
pathname: string,
|
||||
query?: { [key: string]: any },
|
||||
query?: { [key: string]: string | string[] },
|
||||
): Promise<void>;
|
||||
render404(
|
||||
req: http.IncomingMessage,
|
||||
@@ -78,14 +78,14 @@ declare namespace next {
|
||||
req: http.IncomingMessage,
|
||||
res: http.ServerResponse,
|
||||
pathname: string,
|
||||
query?: { [key: string]: any },
|
||||
query?: { [key: string]: string | string[] },
|
||||
): Promise<string>;
|
||||
renderErrorToHTML(
|
||||
err: any,
|
||||
req: http.IncomingMessage,
|
||||
res: http.ServerResponse,
|
||||
pathname: string,
|
||||
query?: { [key: string]: any },
|
||||
query?: { [key: string]: string | string[] },
|
||||
): Promise<string>;
|
||||
|
||||
serveStatic(
|
||||
|
||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ export interface SingletonRouter {
|
||||
readonly pathname: string;
|
||||
readonly route: string;
|
||||
readonly asPath?: string;
|
||||
readonly query?: { [key: string]: any };
|
||||
readonly query?: { [key: string]: string | string[] };
|
||||
|
||||
// router methods
|
||||
reload(route: string): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user