mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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>;
|