Files
wdi-dashboard/node_modules/@chakra-ui/react-children-utils/dist/index.d.ts
2024-08-16 15:06:52 +05:30

12 lines
329 B
TypeScript

import * as react from 'react';
/**
* Gets only the valid children of a component,
* and ignores any nullish or falsy child.
*
* @param children the children
*/
declare function getValidChildren(children: React.ReactNode): react.ReactElement<any, string | react.JSXElementConstructor<any>>[];
export { getValidChildren };