@doczilla/node
Version:
Doczilla API wrapper
17 lines (16 loc) • 556 B
TypeScript
import type { PageOptions } from './PageOptions';
import type { ScreenshotOptions } from './ScreenshotOptions';
import type { StorageOptions } from './StorageOptions';
import type { WebhookOptions } from './WebhookOptions';
export type AsyncScreenshot = {
/**
* Page options, either provide the `url`, `html` or `htmlTemplate` option.
*/
page: PageOptions;
screenshot?: ScreenshotOptions | null;
storage?: StorageOptions | null;
/**
* Webhook to call when screenshot is generated.
*/
webhook: WebhookOptions;
};