mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
flowtyped everything, some functional, safety, and structural changes
This commit is contained in:
parent
6f3eca7a64
commit
d2aecb38ca
92 changed files with 17554 additions and 1440 deletions
35
flow-typed/next.js
vendored
Normal file
35
flow-typed/next.js
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
// @flow
|
||||
|
||||
declare module 'next' {
|
||||
declare type NextApp = {
|
||||
prepare(): Promise<void>;
|
||||
getRequestHandler(): any;
|
||||
render(req: any, res: any, pathname: string, query: any): any;
|
||||
renderToHTML(req: any, res: any, pathname: string, query: string): string;
|
||||
renderError(err: Error, req: any, res: any, pathname: any, query: any): any;
|
||||
renderErrorToHTML(err: Error, req: any, res: any, pathname: string, query: any): string;
|
||||
};
|
||||
declare module.exports: (...opts: any) => NextApp
|
||||
}
|
||||
|
||||
declare module 'next/head' {
|
||||
declare module.exports: Class<React$Component<any, any>>;
|
||||
}
|
||||
|
||||
declare module 'next/link' {
|
||||
declare module.exports: Class<React$Component<{href: string, prefetch?: bool}, any>>;
|
||||
}
|
||||
|
||||
declare module 'next/error' {
|
||||
declare module.exports: Class<React$Component<{statusCode: number}, any>>;
|
||||
}
|
||||
|
||||
declare module 'next/document' {
|
||||
declare export var Head: Class<React$Component<any, any>>;
|
||||
declare export var Main: Class<React$Component<any, any>>;
|
||||
declare export var NextScript: Class<React$Component<any, any>>;
|
||||
declare export default Class<React$Component<any, any>> & {
|
||||
getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, err?: any}) => Promise<any>;
|
||||
renderPage(cb: Function): void;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue