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

13 lines
436 B
Plaintext

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.ReactElement[];
declare const pickChildren: <T = ReactNode>(children: T | undefined, targetChild: React.ElementType) => [T | undefined, T[] | undefined];
export { getValidChildren, pickChildren };