mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 12:44:28 +00:00
Adding createFactory
Forgot about this piece but is important for removing warnings.
This commit is contained in:
2
react/react.d.ts
vendored
2
react/react.d.ts
vendored
@@ -10,6 +10,8 @@ export = React;
|
||||
declare module React {
|
||||
export function createClass<P, S>(specification: Specification<P, S>): ReactComponentFactory<P>;
|
||||
|
||||
export function createFactory<P>(clazz: ReactComponentFactory<P>): ReactComponentFactory<P>;
|
||||
|
||||
export function render<P>(component: ReactComponentElement<P>, container: Element, callback?: () => void): ReactComponentElement<P>;
|
||||
|
||||
export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user