npm.io
0.3.4 • Published 2 years ago

@types/preact-virtual-list

Licence
MIT
Version
0.3.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/preact-virtual-list

Summary

This package contains type definitions for preact-virtual-list (https://github.com/developit/preact-virtual-list).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/preact-virtual-list.

index.d.ts

import { Component, h } from "preact";

interface Props {
    className?: string | undefined;
    data: any[];
    overscanCount?: number | undefined;
    renderRow: (row: any) => any;
    rowHeight: number;
    sync?: boolean | undefined;
    [otherProps: string]: any;
}

declare class VirtualList extends Component<Props> {
    constructor(props: Props);
    render(): h.JSX.Element;
}

export = VirtualList;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: preact

Credits

These definitions were written by Reece Berens.