diff --git a/react/react.d.ts b/react/react.d.ts index 073fe68f6..ef85a7740 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -12,7 +12,7 @@ declare module "react" { export function isValidClass(factory: Factory): boolean; export function isValidComponent(component: Descriptor): boolean; export function initializeTouchEvents(shouldUseTouch: boolean): void; - + export interface Descriptor

{ props: P; } @@ -55,6 +55,13 @@ declare module "react" { replaceProps(nextProps: P, callback?: () => void): void; } + export var Children: { + map(children: any[], fn: (child: any) => any): any[]; + forEach(children: any[], fn: (child: any) => any): void; + count(children: any[]): number; + only(children: any[]): any; + }; + // Browser Interfaces // Taken from https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts interface AbstractView {