npm.io
1.0.5 • Published 1 year ago

@types/react-window-scroller

Licence
MIT
Version
1.0.5
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-window-scroller

Summary

This package contains type definitions for react-window-scroller (https://github.com/FedericoDiRosa/react-window-scroller).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-window-scroller.

index.d.ts

import { ComponentType, Ref } from "react";
import { FixedSizeList, FixedSizeListProps } from "react-window";

export interface ScrollerChildProps {
    ref: Ref<FixedSizeList>;
    outerRef: FixedSizeListProps["outerRef"];
    style: FixedSizeListProps["style"];
    onScroll: FixedSizeListProps["onScroll"];
}

export interface ScrollerProps {
    children: ComponentType<ScrollerChildProps>;
    isGrid?: boolean;
}

export const ReactWindowScroller: ComponentType<ScrollerProps>;

Additional Details

Credits

These definitions were written by Artem Netuk.