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

@types/react-custom-scrollbars

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-custom-scrollbars - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

34

react-custom-scrollbars v3.0/index.d.ts

@@ -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`

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