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

2.1.8 • Public • Published

Installation

npm install --save @types/tinycopy

Summary

This package contains type definitions for tinycopy (https://github.com/vvatanabe/tinycopy).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tinycopy.

index.d.ts

declare module "tinycopy" {
    export default class TinyCopy {
        constructor(trigger: Element, target: string | Element | NodeListOf<Element>);
        on(type: "success", action: (data: string) => void): this;
        on(type: "error", action: (err: Error) => void): this;
        on(type: string, action: (e: string | Error) => void): this;
        static exec(value: string, callback: (err?: Error, data?: string) => void): void;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Yuichi Watanabe.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/tinycopy

      Weekly Downloads

      8

      Version

      2.1.8

      License

      MIT

      Unpacked Size

      3.43 kB

      Total Files

      5

      Last publish

      Collaborators

      • types