3.2.3 • Published 1 year ago

@types/react-lazyload v3.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/react-lazyload

Summary

This package contains type definitions for react-lazyload ver (https://github.com/jasonslyvia/react-lazyload).

Details

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

index.d.ts

// Type definitions for react-lazyload ver 3.2
// Project: https://github.com/jasonslyvia/react-lazyload
// Definitions by: m0a <https://github.com/m0a>
//                 svobik7 <https://github.com/svobik7>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import { Component, ReactNode, CSSProperties } from 'react';

export interface LazyLoadProps {
    once?: boolean | undefined;
    height?: number | string | undefined;
    offset?: number | number[] | undefined;
    overflow?: boolean | undefined;
    resize?: boolean | undefined;
    scroll?: boolean | undefined;
    children?: ReactNode | undefined;
    throttle?: number | boolean | undefined;
    debounce?: number | boolean | undefined;
    placeholder?: ReactNode | undefined;
    scrollContainer?: string | Element | undefined;
    unmountIfInvisible?: boolean | undefined;
    preventLoading?: boolean | undefined;
    className?: string | undefined;
    classNamePrefix?: string | undefined;
    style?: CSSProperties | undefined;
}

export default class LazyLoad extends Component<LazyLoadProps> {
    constructor(props: LazyLoad);
}

export function lazyload(option: {}): LazyLoad;

export function forceCheck(): void;

export function forceVisible(): void;

Additional Details

  • Last updated: Fri, 18 Mar 2022 21:01:43 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by m0a, and svobik7.