export type ImageOptions = { url: string; /** * {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement#properties|HTMLImageElement#properties} */ rest: any[]; }; export type VideoOptions = { url: string; /** * {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video|HTMLVideoElement#properties} */ rest: any[]; }; export type Resource = { text?: string; json?: string; image?: string; binary?: string; /** * {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#parameters|Request#parameters} */ options?: RequestInit; }; export type LoadedResource = string | object | HTMLImageElement | Blob | ArrayBuffer;