4.0.0 • Published 1 year ago
@types/jsdom-screenshot v4.0.0
Installation
npm install --save @types/jsdom-screenshot
Summary
This package contains type definitions for jsdom-screenshot (https://github.com/dferber90/jsdom-screenshot).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsdom-screenshot.
index.d.ts
// Type definitions for jsdom-screenshot 3.2
// Project: https://github.com/dferber90/jsdom-screenshot
// Definitions by: Adam Golan <https://github.com/Tismas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { LaunchOptions, ScreenshotOptions, Viewport, Page } from 'puppeteer';
export interface GenerateImageOptions {
launch?: LaunchOptions | undefined;
screenshot?: ScreenshotOptions | undefined;
serve?: ReadonlyArray<string> | undefined;
debug?: boolean | undefined;
waitUntilNetworkIdle?: boolean | undefined;
viewport?: Viewport | undefined;
intercept?: VoidFunction | undefined;
}
export function debug(element?: Element | Document): void;
export function generateImage(options?: GenerateImageOptions): ReturnType<Page['screenshot']>;
export function restoreDefaultOptions(): void;
export function setDefaultOptions(options: GenerateImageOptions): void;
Additional Details
- Last updated: Thu, 08 Jul 2021 16:22:47 GMT
- Dependencies: @types/puppeteer
- Global values: none
Credits
These definitions were written by Adam Golan.