mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add removeEventListener(), removeListener() and off() to ace
This commit is contained in:
parent
428282dff8
commit
d026e5340c
14
types/ace/index.d.ts
vendored
14
types/ace/index.d.ts
vendored
@ -1041,6 +1041,12 @@ declare namespace AceAjax {
|
||||
addEventListener(ev: 'change', callback: (ev: EditorChangeEvent) => any): void;
|
||||
addEventListener(ev: string, callback: Function): void;
|
||||
|
||||
off(ev: string, callback: Function): void;
|
||||
|
||||
removeListener(ev: string, callback: Function): void;
|
||||
|
||||
removeEventListener(ev: string, callback: Function): void;
|
||||
|
||||
inMultiSelectMode: boolean;
|
||||
|
||||
selectMoreLines(n: number): void;
|
||||
@ -2166,8 +2172,16 @@ declare namespace AceAjax {
|
||||
**/
|
||||
export interface Selection {
|
||||
|
||||
on(ev: string, callback: Function): void;
|
||||
|
||||
addEventListener(ev: string, callback: Function): void;
|
||||
|
||||
off(ev: string, callback: Function): void;
|
||||
|
||||
removeListener(ev: string, callback: Function): void;
|
||||
|
||||
removeEventListener(ev: string, callback: Function): void;
|
||||
|
||||
moveCursorWordLeft(): void;
|
||||
|
||||
moveCursorWordRight(): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user