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