UNPKG

549 BTypeScriptView Raw
1/**
2 * @fileOverview Customized
3 */
4import React, { Component, FunctionComponent, ReactElement } from 'react';
5type Comp<P> = FunctionComponent<P> | Component<P> | ReactElement<P>;
6export type Props<P, C extends Comp<P>> = P & {
7 component: C;
8};
9/**
10 * custom svg elements by rechart instance props and state.
11 * @returns {Object} svg elements
12 */
13export declare function Customized<P, C extends Comp<P>>({ component, ...props }: Props<P, C>): React.JSX.Element;
14export declare namespace Customized {
15 var displayName: string;
16}
17export {};