DefinitelyTyped/types/electron-clipboard-extended/index.d.ts
Jungwoo An c80715e62e Add new typing for electron-clipboard-extended (#34845)
* 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>
2019-04-29 11:39:53 -07:00

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;