npm.io
1.1.2 • Published 2 years ago

@types/img-clipboard

Licence
MIT
Version
1.1.2
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/img-clipboard

Summary

This package contains type definitions for img-clipboard (https://github.com/kufii/img-clipboard).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/img-clipboard.

index.d.ts

/// <reference types="node" />

import { ExecException } from "child_process";

/**
 * Copy an image to the clipboard
 * @param img - The raw image data or file path of the image
 * @returns The result of the inner `child_process.exec` call - `[error, stdout, stderr]`
 */
export function copyImg(img: Buffer | string): Promise<[ExecException | null, string, string]>;

/** Check if the current environment is Wayland */
export function isWayland(): boolean;

export const ErrorCodes: {
    COMMAND_NOT_FOUND: 127;
};

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Nigecat.