UNPKG

loadable-image

Version:
14 lines (13 loc) 413 B
import type { ReactElement, CSSProperties } from 'react'; import type { AsyncImageProps } from '../async-image.types'; export declare enum Status { LOADING = 0, LOADED = 1, FAILED = 2 } export type ImageProps = Omit<AsyncImageProps, 'rootMargin' | 'loader' | 'error' | 'style'> & { error: ReactElement; loader: ReactElement; objectFit?: CSSProperties['objectFit']; inView: boolean; };