children.d.ts 502 B

123456789101112
  1. import { JSX } from './jsx/jsx-namespace';
  2. declare function cloneElement(element: any, props: any): any;
  3. declare function map(children: any, fn: any): any;
  4. declare function compare(nextElement: JSX.Element, lastElement: JSX.Element, callback: Function): void;
  5. declare function toArray(element: JSX.Element): JSX.Element[] | null;
  6. declare const Children: {
  7. cloneElement: typeof cloneElement;
  8. map: typeof map;
  9. toArray: typeof toArray;
  10. compare: typeof compare;
  11. };
  12. export default Children;