mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add new typing for electron-clipboard-extended * Update types/electron-clipboard-extended/index.d.ts Add listener param of off function Co-Authored-By: Jungwoo-An <o1o9814@naver.com>
18 lines
562 B
TypeScript
18 lines
562 B
TypeScript
// Type definitions for electron-clipboard-extended 1.x
|
|
// Project: https://github.com/arjun-g/electron-clipboard-extended
|
|
// Definitions by: Jungwoo An <https://github.com/Jungwoo-An>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.3
|
|
|
|
import * as Electron from 'electron';
|
|
|
|
interface ClipboardExtended extends Electron.Clipboard {
|
|
off: (event: string, listener?: () => void) => void;
|
|
startWatching: () => void;
|
|
stopWatching: () => void;
|
|
}
|
|
|
|
declare const clipboard: ClipboardExtended;
|
|
|
|
export = clipboard;
|