@types/next
Advanced tools
Comparing version 6.0.2 to 6.0.3
import * as React from "react"; | ||
import { NextContext } from "."; | ||
import { SingletonRouter } from "./router"; | ||
import { RouterProps } from "./router"; | ||
export interface AppComponentProps { | ||
Component: React.ComponentType<any>; | ||
router: RouterProps; | ||
pageProps: any; | ||
@@ -12,3 +13,3 @@ } | ||
Component: React.ComponentType<any>; | ||
router: SingletonRouter; | ||
router: RouterProps; | ||
ctx: NextContext; | ||
@@ -15,0 +16,0 @@ } |
@@ -19,2 +19,5 @@ // Type definitions for next 6.0 | ||
declare namespace next { | ||
/** Map object used in query strings. */ | ||
type QueryStringMapObject = Record<string, string | string[] | undefined>; | ||
/** | ||
@@ -28,11 +31,3 @@ * Context object used in methods like `getInitialProps()` | ||
/** query string section of URL parsed as an object */ | ||
query: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
}; | ||
query: QueryStringMapObject; | ||
/** String of the actual path (including the query) shows in the browser */ | ||
@@ -48,2 +43,4 @@ asPath: string; | ||
err?: Error; | ||
/** Whether we're running on the server environment or not. */ | ||
isServer?: boolean; | ||
} | ||
@@ -107,11 +104,3 @@ | ||
pathname: string, | ||
query?: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
}, | ||
query?: QueryStringMapObject, | ||
parsedUrl?: UrlLike | ||
@@ -124,11 +113,3 @@ ): Promise<void>; | ||
pathname: string, | ||
query?: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
} | ||
query?: QueryStringMapObject | ||
): Promise<void>; | ||
@@ -144,11 +125,3 @@ render404( | ||
pathname: string, | ||
query?: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
} | ||
query?: QueryStringMapObject | ||
): Promise<string>; | ||
@@ -160,11 +133,3 @@ renderErrorToHTML( | ||
pathname: string, | ||
query?: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
} | ||
query?: QueryStringMapObject | ||
): Promise<string>; | ||
@@ -171,0 +136,0 @@ |
{ | ||
"name": "@types/next", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "TypeScript definitions for next", | ||
@@ -44,4 +44,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b426628122e9494467e6b7bff4a6148b18d75955c4f78453167978f81882aad4", | ||
"typesPublisherContentHash": "5a084d613a3631456f8f28d9228c6e34b364145b110dd25d5b5995951fde0f5b", | ||
"typeScriptVersion": "2.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 21 Jun 2018 00:15:28 GMT | ||
* Last updated: Wed, 27 Jun 2018 18:10:43 GMT | ||
* Dependencies: http, url, node-fetch, node, react | ||
@@ -14,0 +14,0 @@ * Global values: none |
14009
316