|
1 | 1 | // @flow |
2 | 2 |
|
3 | | -declare module "next" { |
| 3 | +declare module 'next' { |
4 | 4 | declare type NextApp = { |
5 | | - prepare(): Promise<void>; |
6 | | - getRequestHandler(): any; |
7 | | - render(req: any, res: any, pathname: string, query: any): any; |
8 | | - }; |
| 5 | + prepare(): Promise<void>, |
| 6 | + getRequestHandler(): any, |
| 7 | + render(req: any, res: any, pathname: string, query: any): any, |
| 8 | + } |
9 | 9 | declare module.exports: (...opts: any) => NextApp |
10 | 10 | } |
11 | 11 |
|
12 | | -declare module "next/head" { |
13 | | - declare module.exports: Class<React$Component<any, any>>; |
| 12 | +declare module 'next/head' { |
| 13 | + declare module.exports: Class<React$Component<any, any>> |
14 | 14 | } |
15 | 15 |
|
16 | | -declare module "next/link" { |
17 | | - declare module.exports: Class<React$Component<{href: string, prefetch?: bool}, any>>; |
| 16 | +declare module 'next/link' { |
| 17 | + declare module.exports: Class< |
| 18 | + React$Component<{ href: string, prefetch?: boolean }, any> |
| 19 | + > |
18 | 20 | } |
19 | 21 |
|
20 | | -declare module "next/error" { |
21 | | - declare module.exports: Class<React$Component<{statusCode: number}, any>>; |
| 22 | +declare module 'next/error' { |
| 23 | + declare module.exports: Class<React$Component<{ statusCode: number }, any>> |
22 | 24 | } |
23 | 25 |
|
24 | | -declare module "next/document" { |
25 | | - declare export var Head: Class<React$Component<any, any>>; |
26 | | - declare export var Main: Class<React$Component<any, any>>; |
27 | | - declare export var NextScript: Class<React$Component<any, any>>; |
| 26 | +declare module 'next/document' { |
| 27 | + declare export var Head: Class<React$Component<any, any>> |
| 28 | + declare export var Main: Class<React$Component<any, any>> |
| 29 | + declare export var NextScript: Class<React$Component<any, any>> |
28 | 30 | declare export default Class<React$Component<any, any>> & { |
29 | | - getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, err?: any}) => Promise<any>; |
30 | | - renderPage(cb: Function): void; |
31 | | - }; |
| 31 | + getInitialProps: (ctx: { |
| 32 | + pathname: string, |
| 33 | + query: any, |
| 34 | + req?: any, |
| 35 | + res?: any, |
| 36 | + err?: any, |
| 37 | + }) => Promise<any>, |
| 38 | + renderPage(cb: Function): void, |
| 39 | + } |
32 | 40 | } |
0 commit comments