@types/react-swipeable-views
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -27,35 +27,35 @@ // Type definitions for react-swipeable-views 0.13 | ||
export interface SwipeableViewsProps extends React.HTMLProps<HTMLDivElement> { | ||
animateHeight?: boolean; | ||
animateTransitions?: boolean; | ||
axis?: AxisType; | ||
containerStyle?: React.CSSProperties; | ||
disabled?: boolean; | ||
animateHeight?: boolean | undefined; | ||
animateTransitions?: boolean | undefined; | ||
axis?: AxisType | undefined; | ||
containerStyle?: React.CSSProperties | undefined; | ||
disabled?: boolean | undefined; | ||
/* | ||
* This is the config used to disable lazy loading, if true it will render all the views in first rendering. | ||
*/ | ||
disableLazyLoading?: 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; | ||
disableLazyLoading?: boolean | undefined; | ||
enableMouseEvents?: boolean | undefined; | ||
hysteresis?: number | undefined; | ||
ignoreNativeScroll?: boolean | undefined; | ||
index?: number | undefined; | ||
onChangeIndex?: OnChangeIndexCallback | undefined; | ||
onSwitching?: OnSwitchingCallback | undefined; | ||
onTransitionEnd?: OnTransitionEndCallback | undefined; | ||
resistance?: boolean | undefined; | ||
style?: React.CSSProperties | undefined; | ||
slideStyle?: React.CSSProperties | undefined; | ||
springConfig?: SpringConfig | undefined; | ||
slideClassName?: string | undefined; | ||
threshold?: number | undefined; | ||
} | ||
export interface SwipeableViewsState { | ||
indexCurrent?: number; | ||
indexLatest?: number; | ||
isDragging?: boolean; | ||
isFirstRender?: boolean; | ||
heightLatest?: number; | ||
displaySameSlide?: boolean; | ||
indexCurrent?: number | undefined; | ||
indexLatest?: number | undefined; | ||
isDragging?: boolean | undefined; | ||
isFirstRender?: boolean | undefined; | ||
heightLatest?: number | undefined; | ||
displaySameSlide?: boolean | undefined; | ||
} | ||
export default class SwipeableViews extends React.Component<SwipeableViewsProps, SwipeableViewsState> { } |
{ | ||
"name": "@types/react-swipeable-views", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "TypeScript definitions for react-swipeable-views", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views", | ||
"license": "MIT", | ||
@@ -19,3 +20,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -30,4 +31,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "95228adfa1c9fd0eb1550015e1f1e651f14c244dedce749cd1411b68b30b1ba9", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "820c443356282f33fe2ce903c0b7bee93f1b12735aad708a1f9201ad1caabf0e", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,77 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-swipeable-views ( https://github.com/oliviertassinari/react-swipeable-views ). | ||
This package contains type definitions for react-swipeable-views (https://github.com/oliviertassinari/react-swipeable-views). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views/index.d.ts) | ||
````ts | ||
// Type definitions for react-swipeable-views 0.13 | ||
// 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 | ||
// TypeScript Version: 2.8 | ||
Additional Details | ||
* Last updated: Sat, 02 Mar 2019 00:29:14 GMT | ||
* Dependencies: @types/react | ||
import * as React from 'react'; | ||
export type OnChangeIndexCallback = (index: number, indexLatest: number) => void; | ||
export type OnTransitionEndCallback = () => void; | ||
export type OnSwitchingCallback = (index: number, type: OnSwitchingCallbackTypeDescriptor) => void; | ||
export type OnSwitchingCallbackTypeDescriptor = "move" | "end"; | ||
export type AxisType = "x" | "x-reverse" | "y" | "y-reverse"; | ||
export interface SpringConfig { | ||
duration: string; | ||
easeFunction: string; | ||
delay: string; | ||
} | ||
export interface SwipeableViewsProps extends React.HTMLProps<HTMLDivElement> { | ||
animateHeight?: boolean | undefined; | ||
animateTransitions?: boolean | undefined; | ||
axis?: AxisType | undefined; | ||
containerStyle?: React.CSSProperties | undefined; | ||
disabled?: boolean | undefined; | ||
/* | ||
* This is the config used to disable lazy loading, if true it will render all the views in first rendering. | ||
*/ | ||
disableLazyLoading?: boolean | undefined; | ||
enableMouseEvents?: boolean | undefined; | ||
hysteresis?: number | undefined; | ||
ignoreNativeScroll?: boolean | undefined; | ||
index?: number | undefined; | ||
onChangeIndex?: OnChangeIndexCallback | undefined; | ||
onSwitching?: OnSwitchingCallback | undefined; | ||
onTransitionEnd?: OnTransitionEndCallback | undefined; | ||
resistance?: boolean | undefined; | ||
style?: React.CSSProperties | undefined; | ||
slideStyle?: React.CSSProperties | undefined; | ||
springConfig?: SpringConfig | undefined; | ||
slideClassName?: string | undefined; | ||
threshold?: number | undefined; | ||
} | ||
export interface SwipeableViewsState { | ||
indexCurrent?: number | undefined; | ||
indexLatest?: number | undefined; | ||
isDragging?: boolean | undefined; | ||
isFirstRender?: boolean | undefined; | ||
heightLatest?: number | undefined; | ||
displaySameSlide?: boolean | undefined; | ||
} | ||
export default class SwipeableViews extends React.Component<SwipeableViewsProps, SwipeableViewsState> { } | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 18:31:45 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Michael Ledin <https://github.com/mxl>, Deividas Bakanas <https://github.com/DeividasBakanas>. | ||
These definitions were written by [Michael Ledin](https://github.com/mxl), and [Deividas Bakanas](https://github.com/DeividasBakanas). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7526
1
81