Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-swipeable-views

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-swipeable-views - npm Package Compare versions

Comparing version 0.0.28 to 0.12.0

68

react-swipeable-views/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for react-swipeable-views
// Type definitions for react-swipeable-views 0.12
// Project: https://github.com/oliviertassinari/react-swipeable-views
// Definitions by: Michael Ledin <https://github.com/mxl>
// Deividas Bakanas <https://github.com/DeividasBakanas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,29 +10,48 @@ // TypeScript Version: 2.3

export as namespace ReactSwipeableViews;
export type OnChangeIndexCallback = (index: number, indexLatest: number) => void;
declare namespace ReactSwipeableViews {
export interface SwipeableViewsProps extends React.Props<SwipeableViews> {
containerStyle?: React.CSSProperties;
disabled?: boolean;
index?: number;
onChangeIndex?: (indexNew:number, indexLatest:number) => void;
onSwitching?: (index:number) => void;
resistance?: boolean;
slideStyle?: React.CSSProperties;
style?: React.CSSProperties;
threshold?: number;
}
export type OnTransitionEndCallback = () => void;
interface SwipeableViewsState {
indexCurrent?: number;
indexLatest?: number;
isDragging?: boolean;
isFirstRender?: boolean;
heightLatest?: number;
}
export type OnSwitchingCallback = (index: number, type: OnSwitchingCallbackTypeDescriptor) => void;
export class SwipeableViews extends React.Component<SwipeableViewsProps, SwipeableViewsState> {
}
export type OnSwitchingCallbackTypeDescriptor = "move" | "end";
export type AxisType = "x" | "x-reverse" | "y" | "y-reverse";
export interface SpringConfig {
duration: string;
easeFunction: string;
delay: string;
}
export default ReactSwipeableViews.SwipeableViews;
export interface SwipeableViewsProps extends React.HTMLProps<HTMLDivElement> {
animateHeight?: boolean;
animateTransitions?: boolean;
axis?: AxisType;
containerStyle?: React.CSSProperties;
disabled?: boolean;
enableMouseEvents?: boolean;
hysteresis?: number;
ignoreNativeScroll?: boolean;
index?: number;
onChangeIndex?: OnChangeIndexCallback;
onSwitching?: OnSwitchingCallback;
onTransitionEnd?: OnTransitionEndCallback;
resistance?: boolean;
style?: React.CSSProperties;
slideStyle?: React.CSSProperties;
springConfig?: SpringConfig;
slideClassName?: string;
threshold?: number;
}
export interface SwipeableViewsState {
indexCurrent?: number;
indexLatest?: number;
isDragging?: boolean;
isFirstRender?: boolean;
heightLatest?: number;
displaySameSlide?: boolean;
}
export default class SwipeableViews extends React.Component<SwipeableViewsProps, SwipeableViewsState> { }
{
"name": "@types/react-swipeable-views",
"version": "0.0.28",
"version": "0.12.0",
"description": "TypeScript definitions for react-swipeable-views",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/mxl"
},
{
"name": "Deividas Bakanas",
"url": "https://github.com/DeividasBakanas"
}

@@ -23,4 +27,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "5f8c702c8c4808982fa377f52d11f02e1407c4e03bc5e78e5528675ad3f2ebe6",
"typesPublisherContentHash": "9703e7ef451d7faac211a18c2d3e185c4a99b2371e7bc2a2de687e86e6490855",
"typeScriptVersion": "2.3"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Fri, 23 Jun 2017 17:37:55 GMT
* Last updated: Fri, 30 Jun 2017 21:28:46 GMT
* Dependencies: react
* Global values: ReactSwipeableViews
* Global values: none
# Credits
These definitions were written by Michael Ledin <https://github.com/mxl>.
These definitions were written by Michael Ledin <https://github.com/mxl>, Deividas Bakanas <https://github.com/DeividasBakanas>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc