mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Adding createFactory
Forgot about this piece but is important for removing warnings.
This commit is contained in:
parent
3bb83a20e4
commit
17d211f896
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user