8.0.6 • Published 6 months ago
@types/react-image-fallback v8.0.6
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
// Type definitions for react-image-fallback 8.0
// Project: https://github.com/socialtables/react-image-fallback
// Definitions by: Ben Smith <https://github.com/8enSmith>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 08 Jul 2021 20:20:48 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Ben Smith.