@wordpress/components
Version:
UI components for WordPress.
13 lines • 454 B
TypeScript
/**
* External dependencies
*/
import type { ReactNode, ReactElement, ReactPortal } from 'react';
/**
* Gets a collection of available children elements from a React component's children prop.
*
* @param children
*
* @return An array of available children.
*/
export declare function getValidChildren(children: ReactNode): Array<ReactElement | number | string | Iterable<ReactNode> | ReactPortal>;
//# sourceMappingURL=get-valid-children.d.ts.map