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

1.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/img-clipboard

Weekly Downloads

29

Version

1.1.2

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types