Installation
npm install --save @types/react-swipeable-views-core
Summary
This package contains type definitions for react-swipeable-views-core (https://github.com/oliviertassinari/react-swipeable-views#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views-core.
index.d.ts
import { SwipeableViewsProps } from "react-swipeable-views";
export interface ComputeIndexParams {
children: SwipeableViewsProps["children"];
resistance: SwipeableViewsProps["resistance"];
startIndex: number;
startX: number;
pageX: number;
viewLength: number;
}
export const constant: {
RESISTANCE_COEF: number;
UNCERTAINTY_THRESHOLD: number;
};
export function mod(n: number, m: number): number;
export function getDisplaySameSlide(props: SwipeableViewsProps, nextProps: SwipeableViewsProps): boolean;
export function checkIndexBounds(props: SwipeableViewsProps): void;
export function computeIndex(
params: ComputeIndexParams,
): {
index: number;
startX: number;
};
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react-swipeable-views
Credits
These definitions were written by kodai3.