diff --git a/ace.d.ts b/ace.d.ts index c230a9133a5..8487bee8a32 100644 --- a/ace.d.ts +++ b/ace.d.ts @@ -216,7 +216,7 @@ export namespace Ace { wrapBehavioursEnabled: boolean; enableAutoIndent: boolean; autoScrollEditorIntoView: boolean; - keyboardHandler: string; + keyboardHandler: string | null; placeholder: string; value: string; session: EditSession; @@ -245,6 +245,7 @@ export namespace Ace { off(name: string, callback: Function): void; removeListener(name: string, callback: Function): void; removeEventListener(name: string, callback: Function): void; + removeAllListeners(name?: string): void; } export interface Point { @@ -280,7 +281,7 @@ export namespace Ace { } export interface MarkerLike { - range: Range; + range?: Range; type: string; renderer?: MarkerRenderer; clazz: string;