mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
recharts: Allow dataKey function to return string
This commit is contained in:
Vendored
+2
-1
@@ -13,6 +13,7 @@
|
||||
// Andrew Palugniok <https://github.com/apalugniok>
|
||||
// Robert Stigsson <https://github.com/RobertStigsson>
|
||||
// Kosaku Kurino <https://github.com/kousaku-maron>
|
||||
// Kanato Masayoshi <https://github.com/cosnomi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -30,7 +31,7 @@ export type TooltipFormatter = (value: string | number | Array<string | number>,
|
||||
entry: TooltipPayload, index: number) => React.ReactNode;
|
||||
export type ItemSorter<T> = (a: T, b: T) => number;
|
||||
export type ContentRenderer<P> = (props: P) => React.ReactNode;
|
||||
export type DataKey = string | number | ((dataObject: any) => number | [number, number] | null);
|
||||
export type DataKey = string | number | ((dataObject: any) => string | number | [number, number] | null);
|
||||
|
||||
export type IconType = 'plainline' | 'line' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'star' | 'triangle' | 'wye' | 'plainline';
|
||||
export type LegendType = IconType | 'none';
|
||||
|
||||
Reference in New Issue
Block a user