@types/react-custom-scrollbars
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -10,58 +10,60 @@ // Type definitions for react-custom-scrollbars 4.0 | ||
declare module "react-custom-scrollbars" { | ||
export interface positionValues { | ||
top: number; | ||
left: number; | ||
clientWidth: number; | ||
clientHeight: number; | ||
scrollWidth: number; | ||
scrollHeight: number; | ||
scrollLeft: number; | ||
scrollTop: number; | ||
} | ||
export as namespace ReactCustomScrollbars; | ||
export interface ScrollbarProps extends React.HTMLProps<Scrollbars> { | ||
onScroll?: React.UIEventHandler<any>; | ||
onScrollFrame?: (values: positionValues) => void; | ||
onScrollStart?: () => void; | ||
onScrollStop?: () => void; | ||
onUpdate?: (values: positionValues) => void; | ||
export interface positionValues { | ||
top: number; | ||
left: number; | ||
clientWidth: number; | ||
clientHeight: number; | ||
scrollWidth: number; | ||
scrollHeight: number; | ||
scrollLeft: number; | ||
scrollTop: number; | ||
} | ||
renderView?: React.StatelessComponent<any>; | ||
renderTrackHorizontal?: React.StatelessComponent<any>; | ||
renderTrackVertical?: React.StatelessComponent<any>; | ||
renderThumbHorizontal?: React.StatelessComponent<any>; | ||
renderThumbVertical?: React.StatelessComponent<any>; | ||
export interface ScrollbarProps extends React.HTMLProps<Scrollbars> { | ||
onScroll?: React.UIEventHandler<any>; | ||
onScrollFrame?: (values: positionValues) => void; | ||
onScrollStart?: () => void; | ||
onScrollStop?: () => void; | ||
onUpdate?: (values: positionValues) => void; | ||
tagName?: string; | ||
hideTracksWhenNotNeeded?: boolean; | ||
renderView?: React.StatelessComponent<any>; | ||
renderTrackHorizontal?: React.StatelessComponent<any>; | ||
renderTrackVertical?: React.StatelessComponent<any>; | ||
renderThumbHorizontal?: React.StatelessComponent<any>; | ||
renderThumbVertical?: React.StatelessComponent<any>; | ||
autoHide?: boolean; | ||
autoHideTimeout?: number; | ||
autoHideDuration?: number; | ||
tagName?: string; | ||
hideTracksWhenNotNeeded?: boolean; | ||
thumbSize?: number; | ||
thumbMinSize?: number; | ||
universal?: boolean; | ||
autoHide?: boolean; | ||
autoHideTimeout?: number; | ||
autoHideDuration?: number; | ||
autoHeight?: boolean; | ||
autoHeightMin?: number | string; | ||
autoHeightMax?: number | string; | ||
} | ||
thumbSize?: number; | ||
thumbMinSize?: number; | ||
universal?: boolean; | ||
export default 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; | ||
getClientWidth(): number; | ||
getClientHeight(): number; | ||
getValues(): positionValues; | ||
} | ||
autoHeight?: boolean; | ||
autoHeightMin?: number | string; | ||
autoHeightMax?: number | string; | ||
} | ||
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; | ||
getClientWidth(): number; | ||
getClientHeight(): number; | ||
getValues(): positionValues; | ||
} | ||
export default Scrollbars; |
{ | ||
"name": "@types/react-custom-scrollbars", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "TypeScript definitions for react-custom-scrollbars", | ||
@@ -19,5 +19,7 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-custom-scrollbars" | ||
}, | ||
@@ -28,4 +30,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "33db3765eba060b4152a55f75f172c1d538592ad6cf1859c870c285bfb4d6701", | ||
"typesPublisherContentHash": "3c9c7e42a61eed0f3f7b0b998615c0c081770e5224a61dab4d46446bffe65e88", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Sat, 04 Aug 2018 00:56:31 GMT | ||
* Dependencies: react | ||
* Global values: none | ||
* Last updated: Tue, 13 Aug 2019 22:59:56 GMT | ||
* Dependencies: @types/react | ||
* Global values: ReactCustomScrollbars | ||
# Credits | ||
These definitions were written by David-LeBlanc-git <https://github.com/David-LeBlanc-git>, kittimiyo <https://github.com/kittimiyo>. | ||
These definitions were written by David-LeBlanc-git <https://github.com/David-LeBlanc-git>, and kittimiyo <https://github.com/kittimiyo>. |
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
4781