mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
import { ComponentClass, StatelessComponent } from "react";
|
|
|
|
interface Options {
|
|
withRef?: boolean;
|
|
}
|
|
|
|
type ComponentConstructor<P> = ComponentClass<P> | StatelessComponent<P>;
|
|
|
|
export default function withRouter<P>(component: ComponentConstructor<P>, options?: Options): ComponentClass<P>;
|