UNPKG

chromiumly

Version:

A lightweight Typescript library that interacts with Gotenberg's different modules to convert a variety of document formats to PDF files.

19 lines (18 loc) 629 B
import { ChromiumRoute } from '../../main.config'; /** * Abstract class representing a generic converter. * Concrete converter classes should extend this class and implement specific conversion logic. */ export declare abstract class Converter { /** * The endpoint URL for the converter. */ readonly endpoint: string; /** * Creates an instance of the Converter class. * Initializes the endpoint URL based on the provided ChromiumRoute. * * @param {ChromiumRoute} route - The ChromiumRoute enum value representing the conversion route. */ constructor(route: ChromiumRoute); }