Update query param typing

This commit is contained in:
Brice BERNARD
2017-12-01 11:10:02 +01:00
parent c7565e2d3c
commit 98d2bc9bb3
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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(
+1 -1
View File
@@ -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>;