UNPKG

recharts

Version:
31 lines (30 loc) 1.35 kB
import * as React from 'react'; import { ReactNode } from 'react'; import { ActiveDotType, DotType } from './types'; export declare const SCALE_TYPES: string[]; /** * @deprecated instead find another approach that does not depend on displayName. * Get the display name of a component * @param {Object} Comp Specified Component * @return {String} Display name of Component */ export declare const getDisplayName: (Comp: React.ComponentType | string) => string; /** * @deprecated instead find another approach that does not require reading React Elements from DOM. * * @param children do not use * @return deprecated do not use */ export declare const toArray: <T extends ReactNode>(children: T | T[]) => T[]; /** * @deprecated instead find another approach that does not require reading React Elements from DOM. * * Find and return all matched children by type. * `type` must be a React.ComponentType * * @param children do not use * @param type do not use * @return deprecated do not use */ export declare function findAllByType<ComponentType extends React.ComponentType, DetailedElement = React.DetailedReactHTMLElement<React.ComponentProps<ComponentType>, HTMLElement>>(children: ReactNode, type: ComponentType | ComponentType[]): DetailedElement[]; export declare const isClipDot: (dot: ActiveDotType | DotType) => boolean;