npm.io
0.13.3 • Published 2 years ago

@types/react-swipeable-views-core

Licence
MIT
Version
0.13.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by kodai3.