2.1.16 • Published 2 months ago

@types/react-imageloader v2.1.16

Weekly downloads
65
License
MIT
Repository
github
Last release
2 months ago

Installation

npm install --save @types/react-imageloader

Summary

This package contains type definitions for react-imageloader (https://github.com/hzdg/react-imageloader).

Details

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

index.d.ts

// Type definitions for react-imageloader 2.1.0
// Project: https://github.com/hzdg/react-imageloader
// Definitions by: Stephen Jelfs <https://github.com/stephenjelfs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

/// <reference types="react" />

declare module "react-imageloader" {
  interface ImageLoaderProps {
      children?: React.ReactNode;
      ref?: React.LegacyRef<ImageLoader> | undefined;
      /** An optional class name for the wrapper component. */
      className?: string | undefined;

      /** An optional object containing props for the underlying img component. */
      imgProps?: any;

      /** An optional handler for the error event. */
      onError?: ((event: any) => void) | undefined;

      /** An optional handler for the load event. */
      onLoad?: ((event: any) => void) | undefined;

      /** An optional function that returns a React element to be shown while the image loads. */
      preloader?: ((params: any) => React.ReactElement) | undefined;

      /** The URL of the image to be loaded. */
      src: string;

      /** An optional object containing styles for the wrapper component. */
      style?: React.CSSProperties | undefined;

      /** A function that takes a props argument and returns a React element to be used as the wrapper component. Defaults to React.DOM.span. */
      wrapper?: ((props: any) => React.ReactElement) | undefined;
  }

  class ImageLoader extends React.Component<ImageLoaderProps> {}

  export = ImageLoader;
}

Additional Details

  • Last updated: Thu, 21 Oct 2021 23:01:39 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Stephen Jelfs.

2.1.16

2 months ago

2.1.14

7 months ago

2.1.15

6 months ago

2.1.13

8 months ago

2.1.12

3 years ago

2.1.11

3 years ago

2.1.10

5 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago