UNPKG

@egjs/react-imready

Version:

This react module is used to wait for the image or video to be ready.

20 lines (18 loc) 620 B
import { Ref, RefCallback } from "react"; import { ImReadyReactiveProps, ImReadyHooksValue } from "@egjs/imready"; /** * @typedef * @memberof ReactImReady * @extends eg.ImReady.ImReadyHooksValue * @property - Ref function that can register the element to be checked <ko>체크할 엘리먼트를 등록할 수 있는 ref 함수</ko> */ export interface ImReadyValue extends ImReadyHooksValue { register<T extends HTMLElement>(ref?: Ref<T>): RefCallback<T>; } /** * @typedef * @memberof ReactImReady * @extends eg.ImReady.ImReadyReactiveProps */ export interface ImReadyProps extends ImReadyReactiveProps { }