UNPKG

@tiller-ds/util

Version:

Util module of Tiller Design System

4 lines (3 loc) 601 B
import * as React from "react"; export default function findChild(type: string, children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactPortal | undefined; export declare function findChildByType(component: React.ElementType, children: React.ReactNode): string | number | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactFragment | React.ReactPortal | undefined;