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 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Nigecat.