1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove unused flow definitions (#5094)

The `with-flow` sample has some obsolete definitions which are unused by the sample code. Removing the un-imported declarations is the easiest approach.
This commit is contained in:
Jacob Page 2018-09-05 04:38:28 -07:00 committed by Tim Neutkens
parent 56937fd22c
commit 777aab2b42

View file

@ -24,19 +24,6 @@ declare module "next/error" {
declare module.exports: Class<React$Component<{statusCode: number}, any>>; declare module.exports: Class<React$Component<{statusCode: number}, any>>;
} }
declare module "next/router" {
declare module.exports: {
route: string;
pathname: string;
query: Object;
onRouteChangeStart: ?((url: string) => void);
onRouteChangeComplete: ?((url: string) => void);
onRouteChangeError: ?((err: Error & {cancelled: boolean}, url: string) => void);
push(url: string, as: ?string): Promise<boolean>;
replace(url: string, as: ?string): Promise<boolean>;
};
}
declare module "next/document" { declare module "next/document" {
declare export var Head: Class<React$Component<any, any>>; declare export var Head: Class<React$Component<any, any>>;
declare export var Main: Class<React$Component<any, any>>; declare export var Main: Class<React$Component<any, any>>;