UNPKG

light-print

Version:

Lightweight HTML element printing for browsers.

18 lines (16 loc) 517 B
interface PrintOptions { /** Document title */ documentTitle?: string; /** Additional print styles */ mediaPrintStyle?: string; /** Document zoom level */ zoom?: number | string; } /** * Print the HTML element. * @param containerOrSelector An actual HTML element or a CSS selector. * @param options Print options. */ declare function lightPrint(containerOrSelector: Element | string, options?: PrintOptions): Promise<void>; export { lightPrint as default }; export type { PrintOptions };