2.1.16 • Published 2 months ago
@types/react-imageloader v2.1.16
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.