mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Adds missing export getInputRangeFromIndexes (#35088)
This commit is contained in:
committed by
Wesley Wigham
parent
6266445213
commit
39b4723424
+14
@@ -419,3 +419,17 @@ export type PaginationProperties = PaginationProps & React.Props<PaginationStati
|
||||
export class Pagination extends React.Component<PaginationProperties> { }
|
||||
|
||||
export default class Carousel<T> extends React.Component<CarouselProperties<T>> { }
|
||||
|
||||
/**
|
||||
* Get scroll interpolator's input range from an array of slide indexes
|
||||
* Indexes are relative to the current active slide (index 0)
|
||||
* For example, using [3, 2, 1, 0, -1] will return:
|
||||
* [
|
||||
* (index - 3) * sizeRef, // active + 3
|
||||
* (index - 2) * sizeRef, // active + 2
|
||||
* (index - 1) * sizeRef, // active + 1
|
||||
* index * sizeRef, // active
|
||||
* (index + 1) * sizeRef // active - 1
|
||||
* ]
|
||||
*/
|
||||
export function getInputRangeFromIndexes(range: number[], index: number, carouselProps: CarouselProps<any>): number[];
|
||||
|
||||
Reference in New Issue
Block a user