image.d.ts 408 B

123456
  1. import { ImageLike } from '../../core/types';
  2. export declare function findExistImage(newImageOrSrc: string | ImageLike): ImageLike;
  3. export declare function createOrUpdateImage<T>(newImageOrSrc: string | ImageLike, image: ImageLike, hostEl: {
  4. dirty: () => void;
  5. }, onload?: (image: ImageLike, payload: T) => void, cbPayload?: T): ImageLike;
  6. export declare function isImageReady(image: ImageLike): number;