UNPKG

recharts

Version:
19 lines (18 loc) 574 B
/** * @fileOverview Customized */ import * as React from 'react'; import { Component, FunctionComponent, ReactElement } from 'react'; type Comp<P> = FunctionComponent<P> | Component<P> | ReactElement<P>; export type Props<P, C extends Comp<P>> = P & { component: C; }; /** * custom svg elements by rechart instance props and state. * @returns {Object} svg elements */ export declare function Customized<P, C extends Comp<P>>({ component, ...props }: Props<P, C>): React.JSX.Element; export declare namespace Customized { var displayName: string; } export {};