@types/react-custom-scrollbars
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -23,23 +23,23 @@ // Type definitions for react-custom-scrollbars 3.0 | ||
export interface ScrollbarProps extends React.HTMLProps<Scrollbars> { | ||
onScroll?: React.UIEventHandler<any>; | ||
onScrollFrame?: (values: positionValues) => void; | ||
onScrollStart?: () => void; | ||
onScrollStop?: () => void; | ||
onUpdate?: (values: positionValues) => void; | ||
onScroll?: React.UIEventHandler<any> | undefined; | ||
onScrollFrame?: ((values: positionValues) => void) | undefined; | ||
onScrollStart?: (() => void) | undefined; | ||
onScrollStop?: (() => void) | undefined; | ||
onUpdate?: ((values: positionValues) => void) | undefined; | ||
renderView?: React.StatelessComponent<any>; | ||
renderTrackHorizontal?: React.StatelessComponent<any>; | ||
renderTrackVertical?: React.StatelessComponent<any>; | ||
renderThumbHorizontal?: React.StatelessComponent<any>; | ||
renderThumbVertical?: React.StatelessComponent<any>; | ||
renderView?: React.StatelessComponent<any> | undefined; | ||
renderTrackHorizontal?: React.StatelessComponent<any> | undefined; | ||
renderTrackVertical?: React.StatelessComponent<any> | undefined; | ||
renderThumbHorizontal?: React.StatelessComponent<any> | undefined; | ||
renderThumbVertical?: React.StatelessComponent<any> | undefined; | ||
autoHide?: boolean; | ||
autoHideTimeout?: number; | ||
autoHideDuration?: number; | ||
autoHide?: boolean | undefined; | ||
autoHideTimeout?: number | undefined; | ||
autoHideDuration?: number | undefined; | ||
thumbSize?: number; | ||
thumbMinSize?: number; | ||
universal?: boolean; | ||
thumbSize?: number | undefined; | ||
thumbMinSize?: number | undefined; | ||
universal?: boolean | undefined; | ||
style?: React.CSSProperties; | ||
style?: React.CSSProperties | undefined; | ||
} | ||
@@ -46,0 +46,0 @@ |
{ | ||
"name": "@types/react-custom-scrollbars", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "TypeScript definitions for react-custom-scrollbars", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-custom-scrollbars", | ||
"license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "59e18c289000e9430cbbb079a60c7921f4daf324d617473d5d809c244529c1e2", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "abecea9e4df90dbadcd5c03fc85ee9b6b3506bf721e5c8907ad80c2c7996a0dd", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,71 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-custom-scrollbars/v3. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-custom-scrollbars/v3/index.d.ts) | ||
````ts | ||
// Type definitions for react-custom-scrollbars 3.0 | ||
// Project: https://github.com/malte-wessel/react-custom-scrollbars | ||
// Definitions by: David-LeBlanc-git <https://github.com/David-LeBlanc-git> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
import * as React from "react"; | ||
export as namespace ReactCustomScrollbars; | ||
export interface positionValues { | ||
top: number; | ||
left: number; | ||
clientWidth: number; | ||
clientHeight: number; | ||
scrollWidth: number; | ||
scrollHeight: number; | ||
scrollLeft: number; | ||
scrollTop: number; | ||
} | ||
export interface ScrollbarProps extends React.HTMLProps<Scrollbars> { | ||
onScroll?: React.UIEventHandler<any> | undefined; | ||
onScrollFrame?: ((values: positionValues) => void) | undefined; | ||
onScrollStart?: (() => void) | undefined; | ||
onScrollStop?: (() => void) | undefined; | ||
onUpdate?: ((values: positionValues) => void) | undefined; | ||
renderView?: React.StatelessComponent<any> | undefined; | ||
renderTrackHorizontal?: React.StatelessComponent<any> | undefined; | ||
renderTrackVertical?: React.StatelessComponent<any> | undefined; | ||
renderThumbHorizontal?: React.StatelessComponent<any> | undefined; | ||
renderThumbVertical?: React.StatelessComponent<any> | undefined; | ||
autoHide?: boolean | undefined; | ||
autoHideTimeout?: number | undefined; | ||
autoHideDuration?: number | undefined; | ||
thumbSize?: number | undefined; | ||
thumbMinSize?: number | undefined; | ||
universal?: boolean | undefined; | ||
style?: React.CSSProperties | undefined; | ||
} | ||
export class Scrollbars extends React.Component<ScrollbarProps> { | ||
scrollTop(top: number): void; | ||
scrollLeft(left: number): void; | ||
scrollToTop(): void; | ||
scrollToBottom(): void; | ||
scrollToLeft(): void; | ||
scrollToRight(): void; | ||
getScrollLeft(): number; | ||
getScrollTop(): number; | ||
getScrollWidth(): number; | ||
getScrollHeight(): number; | ||
getWidth(): number; | ||
getHeight(): number; | ||
getValues(): positionValues; | ||
} | ||
export default Scrollbars; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 12 Aug 2020 00:54:29 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:33:39 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +80,0 @@ * Global values: `ReactCustomScrollbars` |
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
6896
61312
0
83