Installation
npm install --save @types/react-image-fallback
Summary
This package contains type definitions for react-image-fallback (https://github.com/socialtables/react-image-fallback).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-image-fallback.
index.d.ts
import * as React from "react";
export default class ReactImageFallback extends React.Component<
& ReactImageFallbackProps
& React.DetailedHTMLProps<
React.ImgHTMLAttributes<HTMLImageElement>,
HTMLImageElement
>,
any
> {}
export interface ReactImageFallbackProps {
src?: string | undefined;
fallbackImage: string | React.ReactElement | string[] | Array<string | undefined> | React.ReactElement[];
initialImage?: string | React.ReactElement | undefined;
onLoad?: ((event: React.SyntheticEvent<HTMLImageElement>) => void) | undefined;
onError?: ((event: React.SyntheticEvent<HTMLImageElement>) => void) | undefined;
initialTimeout?: number | undefined;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: @types/react
Credits
These definitions were written by Ben Smith.