react-to-print
Version:
Print React components in the browser
14 lines (13 loc) • 720 B
TypeScript
import { Font } from "../types/font";
import type { UseReactToPrintOptions } from "../types/UseReactToPrintOptions";
export interface HandlePrintWindowOnLoadData {
contentNode: Node;
clonedContentNode: Node;
clonedImgNodes: never[] | NodeListOf<HTMLImageElement>;
clonedVideoNodes: never[] | NodeListOf<HTMLVideoElement>;
numResourcesToLoad: number;
originalCanvasNodes: never[] | NodeListOf<HTMLCanvasElement>;
}
type MarkLoaded = (resource: Element | Font | FontFace, errorMessages?: unknown[]) => void;
export declare function handlePrintWindowOnLoad(printWindow: HTMLIFrameElement, markLoaded: MarkLoaded, data: HandlePrintWindowOnLoadData, options: UseReactToPrintOptions): void;
export {};