pdfactory-core
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -13,3 +13,2 @@ /// <reference types="node" /> | ||
} | ||
export type Pdfactory = (config: PdfactoryConfig, additionalConfig: EjsConfig, pdfOptions: PDFOptions) => Promise<({ document, data }: PdfRequest) => Promise<Buffer | PdfactoryError<ErrorType.DocumentNotFoundError | ErrorType.DocumentRenderingError>>> | PdfactoryError<ErrorType.UnsupportedFileTypeError>; | ||
export interface PdfactoryConfig { | ||
@@ -22,2 +21,8 @@ useFileSystem: boolean; | ||
} | ||
export type PdfactoryInitializationParams = { | ||
config?: PdfactoryConfig; | ||
ejsConfig?: EjsConfig; | ||
pdfOptions?: PDFOptions; | ||
}; | ||
export type Pdfactory = (params: PdfactoryInitializationParams) => Promise<({ document, data }: PdfRequest) => Promise<Buffer | PdfactoryError<ErrorType.DocumentNotFoundError | ErrorType.DocumentRenderingError>>> | PdfactoryError<ErrorType.UnsupportedFileTypeError>; | ||
export interface PdfRequest { | ||
@@ -24,0 +29,0 @@ document: string; |
{ | ||
"author": "pdfactory-core", | ||
"name": "pdfactory-core", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7692
45