8.0.6 • Published 6 months ago

@types/react-image-fallback v8.0.6

Weekly downloads
2,790
License
MIT
Repository
github
Last release
6 months ago

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.

8.0.5

7 months ago

8.0.4

8 months ago

8.0.6

6 months ago

8.0.3

3 years ago

8.0.2

3 years ago

8.0.1

5 years ago

8.0.0

6 years ago