Files
NapCatQQ/.pnpm-store/v3/files/a6/20fca2f9708038463e8b41ce3cdb2345fd6dc662d2d260ef014c211031becbda4dc96b218ea12344ce55fedb5f13be13c1633f7867319a90867df9766c9345
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
522 B
Plaintext

import * as React$1 from 'react';
import { ReactNode } 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$1.ReactElement<any, string | React$1.JSXElementConstructor<any>>[];
declare const pickChildren: <T = ReactNode>(children: T | undefined, targetChild: React.ElementType) => [T | undefined, T[] | undefined];
export { getValidChildren, pickChildren };