mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
[next] Added AppComponentContext type
This commit is contained in:
Vendored
+7
@@ -1,10 +1,17 @@
|
||||
import * as React from "react";
|
||||
import { NextContext } from "next";
|
||||
|
||||
export interface AppComponentProps {
|
||||
Component: React.ComponentType<any>;
|
||||
pageProps: any
|
||||
}
|
||||
|
||||
export interface AppComponentContext {
|
||||
Component: any;
|
||||
router: any; // TODO: could be SingletonRouter?
|
||||
ctx: NextContext;
|
||||
}
|
||||
|
||||
export class Container extends React.Component {}
|
||||
|
||||
export default class App<P = {}> extends React.Component<P & AppComponentProps> {}
|
||||
|
||||
Reference in New Issue
Block a user