@paprize/puppeteer 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,15 +19,15 @@ export declare function openReport(page: Page, reportUrl: URL, jsonData: string
19
19
  * Generates a PDF from the given Puppeteer `Page` instance using the specified options.
20
20
  *
21
21
  * @param page - The Puppeteer `Page` instance to generate the PDF from.
22
- * @param pdfOptions - Optional additional options to customize the PDF generation. These options
22
+ * @param options - Optional additional options to customize the PDF generation. These options
23
23
  * will be merged with the default settings.
24
24
  * @returns A promise that resolves to a `Uint8Array` containing the generated PDF data.
25
25
  */
26
- export declare function pageToPdf(page: Page, pdfOptions?: PDFOptions): Promise<Uint8Array>;
26
+ export declare function pageToPdf(page: Page, options?: ReportOptions): Promise<Uint8Array>;
27
27
 
28
- export declare const paprize_isReady = "__PAPRIZE_IS_READY";
28
+ declare const paprizeOptions: PDFOptions;
29
29
 
30
- export declare const paprize_readJsonDataFile = "__PAPRIZE_READ_JSON_DATA_FILE";
30
+ declare type ReportOptions = Omit<PDFOptions, keyof typeof paprizeOptions>;
31
31
 
32
32
  export declare interface ReportServer {
33
33
  server: default_2.Server;
@@ -61,11 +61,3 @@ export declare function reportToPdf(page: Page, reportUrl: URL, jsonData?: strin
61
61
  export declare function serveReport(dir: string, port?: number): Promise<ReportServer>;
62
62
 
63
63
  export { }
64
-
65
-
66
- declare global {
67
- interface Window {
68
- [paprize_isReady]?: boolean;
69
- [paprize_readJsonDataFile]?: () => Promise<string>;
70
- }
71
- }