@types/react-custom-scrollbars
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -9,51 +9,53 @@ // Type definitions for react-custom-scrollbars 3.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; | ||
autoHide?: boolean; | ||
autoHideTimeout?: number; | ||
autoHideDuration?: number; | ||
renderView?: React.StatelessComponent<any>; | ||
renderTrackHorizontal?: React.StatelessComponent<any>; | ||
renderTrackVertical?: React.StatelessComponent<any>; | ||
renderThumbHorizontal?: React.StatelessComponent<any>; | ||
renderThumbVertical?: React.StatelessComponent<any>; | ||
thumbSize?: number; | ||
thumbMinSize?: number; | ||
universal?: boolean; | ||
} | ||
autoHide?: boolean; | ||
autoHideTimeout?: number; | ||
autoHideDuration?: number; | ||
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; | ||
getWidth(): number; | ||
getHeight(): number; | ||
getValues(): positionValues; | ||
} | ||
thumbSize?: number; | ||
thumbMinSize?: number; | ||
universal?: boolean; | ||
} | ||
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; |
{ | ||
"name": "@types/react-custom-scrollbars", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "TypeScript definitions for react-custom-scrollbars", | ||
@@ -14,5 +14,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" | ||
}, | ||
@@ -23,4 +25,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "f05afd8d1ba9629912f3e23dd92fc951d19a732280c39063ac7ca4d42e47fe76", | ||
"typesPublisherContentHash": "be55979afc5e3af7f9a93e08d6a7bf692a9eecabed729bd1f8fa87279ec0f4ae", | ||
"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: Sat, 10 Aug 2019 00:03:15 GMT | ||
* Dependencies: @types/react | ||
* Global values: ReactCustomScrollbars | ||
# Credits | ||
These definitions were written by David-LeBlanc-git <https://github.com/David-LeBlanc-git>. |
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
4352
57008