mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
651 B
TypeScript
15 lines
651 B
TypeScript
// Type definitions for tinycopy 2.1.2
|
|
// Project: https://github.com/vvatanabe/tinycopy
|
|
// Definitions by: Yuichi Watanabe <https://github.com/vvatanabe>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
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;
|
|
}
|
|
}
|