New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/screenshot-desktop

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/screenshot-desktop

TypeScript definitions for screenshot-desktop

ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.15.0
Version published
Weekly downloads
14K
-6.97%
Maintainers
1
Weekly downloads
 
Created
Source

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?: screenshotDesktop.ScreenshotOptionsWithoutFilename,
): Promise<NonSharedBuffer>;
declare function screenshotDesktop(
    options?: screenshotDesktop.ScreenshotOptionsWithFilename,
): Promise<string>;

declare namespace screenshotDesktop {
    interface ScreenshotOptions {
        filename?: string;
        format?: ImageFormat;
        screen?: DisplayID;
        linuxLibrary?: "scrot" | "imagemagick";
    }

    interface ScreenshotOptionsWithFilename extends ScreenshotOptions {
        filename: string;
    }

    interface ScreenshotOptionsWithoutFilename extends ScreenshotOptions {
        filename?: "";
    }

    interface Display {
        id: number | string;
        name: string;
    }

    type DisplayID = Display["id"];

    type ImageFormat = "jpg" | "png";

    function listDisplays(): Promise<Array<Display>>;
    function all(): Promise<Array<NonSharedBuffer>>;
}

Additional Details

  • Last updated: Wed, 30 Jul 2025 22:02:50 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Usama Ahsan.

FAQs

Package last updated on 30 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts