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.