New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-window

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-window - npm Package Compare versions

Comparing version 1.8.3 to 1.8.4

80

react-window/index.d.ts

@@ -29,3 +29,3 @@ // Type definitions for react-window 1.8

data: T;
isScrolling?: boolean;
isScrolling?: boolean | undefined;
}

@@ -38,3 +38,3 @@

data: T;
isScrolling?: boolean;
isScrolling?: boolean | undefined;
}

@@ -53,11 +53,11 @@

*/
className?: string;
className?: string | undefined;
/**
* Tag name passed to document.createElement to create the inner container element. This is an advanced property; in most cases, the default ("div") should be used.
*/
innerElementType?: ReactElementType;
innerElementType?: ReactElementType | undefined;
/**
* Ref to attach to the inner container element. This is an advanced property.
*/
innerRef?: Ref<any>;
innerRef?: Ref<any> | undefined;
/**

@@ -68,3 +68,3 @@ * Tag name passed to document.createElement to create the inner container element. This is an advanced property; in most cases, the default ("div") should be used.

*/
innerTagName?: string;
innerTagName?: string | undefined;
/**

@@ -75,11 +75,11 @@ * Contextual data to be passed to the item renderer as a data prop. This is a light-weight alternative to React's built-in context API.

*/
itemData?: T;
itemData?: T | undefined;
/**
* Tag name passed to document.createElement to create the outer container element. This is an advanced property; in most cases, the default ("div") should be used.
*/
outerElementType?: ReactElementType;
outerElementType?: ReactElementType | undefined;
/**
* Ref to attach to the outer container element. This is an advanced property.
*/
outerRef?: Ref<any>;
outerRef?: Ref<any> | undefined;
/**

@@ -90,7 +90,7 @@ * Tag name passed to document.createElement to create the outer container element. This is an advanced property; in most cases, the default ("div") should be used.

*/
outerTagName?: string;
outerTagName?: string | undefined;
/**
* Optional inline style to attach to outermost <div> element.
*/
style?: CSSProperties;
style?: CSSProperties | undefined;
/**

@@ -101,3 +101,3 @@ * Adds an additional isScrolling parameter to the children render function. This parameter can be used to show a placeholder row or column while the list is being scrolled.

*/
useIsScrolling?: boolean;
useIsScrolling?: boolean | undefined;
}

@@ -156,3 +156,3 @@

*/
direction?: CSSDirection | Direction;
direction?: CSSDirection | Direction | undefined;
/**

@@ -167,3 +167,3 @@ * Layout/orientation of the list.

*/
layout?: Layout;
layout?: Layout | undefined;
/**

@@ -174,3 +174,3 @@ * Scroll offset for initial render.

*/
initialScrollOffset?: number;
initialScrollOffset?: number | undefined;
/**

@@ -184,3 +184,3 @@ * By default, lists will use an item's index as its key. This is okay if:

*/
itemKey?: ListItemKeySelector<T>;
itemKey?: ListItemKeySelector<T> | undefined;
/**

@@ -194,11 +194,11 @@ * The number of items (rows or columns) to render outside of the visible area. This property can be important for two reasons:

*/
overscanCount?: number;
overscanCount?: number | undefined;
/**
* Called when the items rendered by the list change.
*/
onItemsRendered?: (props: ListOnItemsRenderedProps) => any;
onItemsRendered?: ((props: ListOnItemsRenderedProps) => any) | undefined;
/**
* Called when the list scroll positions changes, as a result of user scrolling or scroll-to method calls.
*/
onScroll?: (props: ListOnScrollProps) => any;
onScroll?: ((props: ListOnScrollProps) => any) | undefined;
}

@@ -249,3 +249,3 @@

*/
direction?: CSSDirection;
direction?: CSSDirection | undefined;
/**

@@ -258,7 +258,7 @@ * Height of the grid. This affects the number of rows that will be rendered (and displayed) at any given time.

*/
initialScrollLeft?: number;
initialScrollLeft?: number | undefined;
/**
* Vertical scroll offset for initial render.
*/
initialScrollTop?: number;
initialScrollTop?: number | undefined;
/**

@@ -272,15 +272,15 @@ * By default, grids will use an item's indices as its key. This is okay if:

*/
itemKey?: GridItemKeySelector<T>;
itemKey?: GridItemKeySelector<T> | undefined;
/**
* Called when the items rendered by the grid change.
*/
onItemsRendered?: (props: GridOnItemsRenderedProps) => any;
onItemsRendered?: ((props: GridOnItemsRenderedProps) => any) | undefined;
/**
* Called when the grid scroll positions changes, as a result of user scrolling or scroll-to method calls.
*/
onScroll?: (props: GridOnScrollProps) => any;
onScroll?: ((props: GridOnScrollProps) => any) | undefined;
/**
* @deprecated since version 1.8.2, please use overscanColumnCount
*/
overscanColumnsCount?: number;
overscanColumnsCount?: number | undefined;
/**

@@ -294,7 +294,7 @@ * The number of columns to render outside of the visible area. This property can be important for two reasons:

*/
overscanColumnCount?: number;
overscanColumnCount?: number | undefined;
/**
* @deprecated since version 1.8.2, please use overscanRowCount
*/
overscanRowsCount?: number;
overscanRowsCount?: number | undefined;
/**

@@ -308,3 +308,3 @@ * The number of rows to render outside of the visible area. This property can be important for two reasons:

*/
overscanRowCount?: number;
overscanRowCount?: number | undefined;
/**

@@ -320,3 +320,3 @@ * The number of items (rows or columns) to render outside of the visible area. This property can be important for two reasons:

*/
overscanCount?: number;
overscanCount?: number | undefined;
/**

@@ -346,3 +346,3 @@ * Number of rows in the grid. Note that only a few rows will be rendered and displayed at a time.

*/
estimatedItemSize?: number;
estimatedItemSize?: number | undefined;
/**

@@ -376,3 +376,3 @@ * Returns the size of a item in the direction being windowed. For vertical lists, this is the row height. For horizontal lists, this is the column width.

*/
estimatedColumnWidth?: number;
estimatedColumnWidth?: number | undefined;
/**

@@ -384,3 +384,3 @@ * Average (or estimated) row height for unrendered rows.

*/
estimatedRowHeight?: number;
estimatedRowHeight?: number | undefined;
/**

@@ -471,5 +471,5 @@ * Returns the height of the specified row.

scrollToItem(params: {
align?: Align;
columnIndex?: number;
rowIndex?: number;
align?: Align | undefined;
columnIndex?: number | undefined;
rowIndex?: number | undefined;
}): void;

@@ -501,5 +501,5 @@ }

scrollToItem(params: {
align?: Align;
columnIndex?: number;
rowIndex?: number;
align?: Align | undefined;
columnIndex?: number | undefined;
rowIndex?: number | undefined;
}): void;

@@ -528,3 +528,3 @@ /**

rowIndex: number;
shouldForceUpdate?: boolean;
shouldForceUpdate?: boolean | undefined;
}): void;

@@ -531,0 +531,0 @@ /**

{
"name": "@types/react-window",
"version": "1.8.3",
"version": "1.8.4",
"description": "TypeScript definitions for react-window",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-window",
"license": "MIT",

@@ -34,4 +35,4 @@ "contributors": [

},
"typesPublisherContentHash": "58574db0c544c61b6d01c79b7df72fea6fd27373e9c8006d45e3f2220027dcc3",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "9a2cf54fc0d9ab217f85f84b20f08fc7274d833b3ced5d69c6272fe87612eb66",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 29 Apr 2021 10:01:22 GMT
* Last updated: Wed, 07 Jul 2021 18:31:49 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

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