mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
19 lines
489 B
TypeScript
19 lines
489 B
TypeScript
import * as React from "react";
|
|
import { NextContext } from ".";
|
|
import { SingletonRouter } from "./router";
|
|
|
|
export interface AppComponentProps {
|
|
Component: React.ComponentType<any>;
|
|
pageProps: any;
|
|
}
|
|
|
|
export interface AppComponentContext {
|
|
Component: React.ComponentType<any>;
|
|
router: SingletonRouter;
|
|
ctx: NextContext;
|
|
}
|
|
|
|
export class Container extends React.Component {}
|
|
|
|
export default class App<TProps = {}> extends React.Component<TProps & AppComponentProps> {}
|