UNPKG

@visactor/react-vchart

Version:

The react version of VChart 4.x

7 lines (6 loc) 538 B
import React, { ReactNode } from 'react'; export declare const getDisplayName: (Comp: any) => any; export declare const typeOfComponent: (component: any, customTypeKey?: string) => string; export declare const toArray: <T = React.ReactNode, TC = React.ReactNode>(children: T) => TC[]; export declare const findAllByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC | TC[]) => T[]; export declare const findChildByType: <T extends React.ReactNode, TC = unknown>(children: React.ReactNode, type: TC) => T;