@types/next
Advanced tools
Comparing version 2.4.9 to 2.4.10
export default function(): {serverRuntimeConfig: any, publicRuntimeConfig: any}; |
import * as React from "react"; | ||
import * as http from "http"; | ||
export interface Context { | ||
err?: Error; | ||
req: http.IncomingMessage; | ||
res: http.ServerResponse; | ||
pathname: string; | ||
query?: { | ||
[key: string]: | ||
| boolean | ||
| boolean[] | ||
| number | ||
| number[] | ||
| string | ||
| string[]; | ||
}; | ||
asPath: string; | ||
renderPage( | ||
enhancer?: (page: React.Component) => React.ComponentType<any> | ||
): { | ||
html?: string; | ||
head: Array<React.ReactElement<any>>; | ||
errorHtml: string; | ||
}; | ||
} | ||
export interface DocumentProps { | ||
@@ -7,4 +33,7 @@ __NEXT_DATA__?: any; | ||
chunks?: string[]; | ||
html?: string; | ||
head?: Array<React.ReactElement<any>>; | ||
errorHtml?: string; | ||
styles?: Array<React.ReactElement<any>>; | ||
[key: string]: any; | ||
@@ -16,2 +45,4 @@ } | ||
export class NextScript extends React.Component {} | ||
export default class extends React.Component<DocumentProps> {} | ||
export default class extends React.Component<DocumentProps> { | ||
static getInitialProps(ctx: Context): DocumentProps; | ||
} |
@@ -0,0 +0,0 @@ import * as React from "react"; |
import * as React from "react"; | ||
export default class extends React.Component<{ statusCode: number }> {} |
@@ -0,0 +0,0 @@ import * as React from "react"; |
@@ -0,0 +0,0 @@ // Type definitions for next 2.4 |
@@ -0,0 +0,0 @@ import * as url from "url"; |
{ | ||
"name": "@types/next", | ||
"version": "2.4.9", | ||
"version": "2.4.10", | ||
"description": "TypeScript definitions for next", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
}, | ||
@@ -29,4 +29,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "f7053536e015a871f777a3abfd0b5b57a8e4d0af9f15ccefb25910dc587306e9", | ||
"typesPublisherContentHash": "4e65bb9785549b86dc4cb3263790a43a8c03b6e78aaa397c447de5cd589b4c40", | ||
"typeScriptVersion": "2.6" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/next | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/next | ||
Additional Details | ||
* Last updated: Mon, 09 Apr 2018 23:38:01 GMT | ||
* Last updated: Thu, 10 May 2018 20:18:20 GMT | ||
* Dependencies: http, url, node, react | ||
@@ -14,0 +14,0 @@ * Global values: none |
@@ -0,0 +0,0 @@ import * as React from "react"; |
Sorry, the diff of this file is not supported yet
11319
284