@types/react-swipeable-views-core
TypeScript icon, indicating that this package has built-in type declarations

0.13.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-swipeable-views-core

Weekly Downloads

8,995

Version

0.13.3

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • types