1.12.3 • Published 7 months ago
@types/screenshot-desktop v1.12.3
Installation
npm install --save @types/screenshot-desktop
Summary
This package contains type definitions for screenshot-desktop (https://github.com/bencevans/screenshot-desktop).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/screenshot-desktop.
index.d.ts
// Type definitions for screenshot-desktop 1.12
// Project: https://github.com/bencevans/screenshot-desktop
// Definitions by: Usama Ahsan <https://github.com/usama8800>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export = screenshotDesktop;
declare function screenshotDesktop(options?: { format?: screenshotDesktop.ImageFormat, screen?: screenshotDesktop.DisplayID }): Promise<Buffer>;
declare function screenshotDesktop(options?: { filename: string, format?: screenshotDesktop.ImageFormat, screen?: screenshotDesktop.DisplayID }): Promise<string>;
declare namespace screenshotDesktop {
type DisplayID = number;
type ImageFormat =
'bmp' |
'emf' |
'exif' |
'jpg' |
'jpeg' |
'gif' |
'png' |
'tiff' |
'wmf';
function listDisplays(): Promise<Array<{ id: DisplayID, name: string }>>;
function all(): Promise<Array<{ id: DisplayID, name: string }>>;
}
Additional Details
- Last updated: Mon, 26 Jul 2021 20:31:31 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Usama Ahsan.