From 19fc8fa756b484511662028f48af923c24116b13 Mon Sep 17 00:00:00 2001 From: shaban Date: Sun, 21 Jun 2015 22:45:11 +0200 Subject: [PATCH] Update ace.d.ts add config functions, reference https://github.com/ajaxorg/ace/wiki/Configuring-Ace also support $blockscrolling variable; reference https://github.com/ajaxorg/ace/issues/2499 --- ace/ace.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ace/ace.d.ts b/ace/ace.d.ts index 72fefbc6e..4758b59e9 100644 --- a/ace/ace.d.ts +++ b/ace/ace.d.ts @@ -1063,6 +1063,31 @@ declare module AceAjax { onChangeMode(e?); execCommand(command:string, args?: any); + + /** + * Sets a Configuration Option + **/ + setOption(optionName: any, optionValue: any); + + /** + * Sets Configuration Options + **/ + setOptions(keyValueTuples: any); + + /** + * Get a Configuration Option + **/ + getOption(name: any):any; + + /** + * Get Configuration Options + **/ + getOptions():any; + + /** + * Get rid of console warning by setting this to Infinity + **/ + $blockScrolling:number; /** * Sets a new key handler, such as "vim" or "windows".