mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 03:00:02 +00:00
add AccessorFunctionProps (#40280)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
dbccba2911
commit
61895ffad8
4
types/react-native-svg-charts/index.d.ts
vendored
4
types/react-native-svg-charts/index.d.ts
vendored
@@ -23,8 +23,10 @@ export type ScaleType<Range, Output> =
|
||||
| ScalePower<Range, Output>
|
||||
| ScaleTime<Range, Output>;
|
||||
|
||||
export interface AccessorFunctionProps<T> { index: number; item: T; }
|
||||
|
||||
export type ScaleFunction = () => ScaleType<any, any> | ScaleBand<any>;
|
||||
export type AccessorFunction<T, U> = (props: { item: T, index: number }) => U;
|
||||
export type AccessorFunction<T, U> = (props: AccessorFunctionProps<T>) => U;
|
||||
export type SortFunction<T> = (a: T, b: T) => number;
|
||||
export type OffsetFunction = (series: Series<any, any>, order: number[]) => void;
|
||||
export type OrderFunction = (series: Series<any, any>) => number[];
|
||||
|
||||
Reference in New Issue
Block a user