import { Plugin } from "vue" /** * See https://www.w3schools.com/Jsref/met_win_open.asp for more information */ interface Options { name?: string specs?: string[] styles?: string[] replace?: boolean autoClose?: boolean windowTitle?: string } interface HtmlToPaper { ( id: string | HTMLElement, localOptions: Options, callback?: () => void ): Promise } export const VueHtmlToPaper: Plugin declare module "vue" { interface ComponentCustomProperties { $htmlToPaper: HtmlToPaper } }