mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-30 23:30:06 +00:00
Recharts v0.22 add missing types
This commit is contained in:
5
types/recharts/index.d.ts
vendored
5
types/recharts/index.d.ts
vendored
@@ -24,6 +24,7 @@ export interface Margin {
|
||||
|
||||
export interface AreaProps extends Partial<CSSStyleDeclaration> {
|
||||
type?: 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | RechartsFunction;
|
||||
dataKey?: string | number;
|
||||
xAxisId?: string | number;
|
||||
yAxisId?: string | number;
|
||||
legendType?: LegendType;
|
||||
@@ -645,13 +646,13 @@ export interface TooltipProps {
|
||||
itemStyle?: any;
|
||||
wrapperStyle?: any;
|
||||
labelStyle?: any;
|
||||
cursor?: boolean | any | React.ReactElement<any>;
|
||||
cursor?: boolean | any | React.ReactElement<any> | React.StatelessComponent<any>;
|
||||
viewBox: ViewBox;
|
||||
active?: boolean;
|
||||
coordinate?: Coordinate;
|
||||
payload?: TooltipPayload[];
|
||||
label?: string | number;
|
||||
content?: React.ReactElement<any> | RechartsFunction;
|
||||
content?: React.ReactElement<any> | React.StatelessComponent<any> | RechartsFunction;
|
||||
formatter?: RechartsFunction;
|
||||
labelFormatter?: RechartsFunction;
|
||||
itemSorter?: RechartsFunction;
|
||||
|
||||
Reference in New Issue
Block a user