@types/screenshot-desktop
TypeScript icon, indicating that this package has built-in type declarations

1.12.3 • Public • Published

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

/// <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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Usama Ahsan.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/screenshot-desktop

Weekly Downloads

1,644

Version

1.12.3

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • types