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) • 634 B
TypeScript
import { TemplatesRoute } from '../../main.config';
/**
* Abstract class representing a generic generator.
* Concrete generator classes should extend this class and implement specific generation logic.
*/
export declare abstract class Generator {
/**
* The endpoint URL for the generator.
*/
readonly endpoint: string;
/**
* Creates an instance of the Generator class.
* Initializes the endpoint URL based on the provided TemplatesRoute.
*
* @param {TemplatesRoute} route - The TemplatesRoute enum value representing the generation route.
*/
constructor(route: TemplatesRoute);
}