@@ -86,9 +86,13 @@ declare module "ace-code" {
8686 gutterOffset : number ;
8787 }
8888 interface HardWrapOptions {
89+ /** First row of the range to process */
8990 startRow : number ;
91+ /** Last row of the range to process */
9092 endRow : number ;
93+ /** Whether to merge short adjacent lines that fit within the limit */
9194 allowMerge ?: boolean ;
95+ /** Maximum column width for line wrapping (defaults to editor's print margin) */
9296 column ?: number ;
9397 }
9498 interface CommandBarOptions {
@@ -778,15 +782,25 @@ declare module "ace-code" {
778782 } ;
779783 type CompleterCallback = ( error : any , completions : Completion [ ] ) => void ;
780784 interface Completer {
785+ /** Regular expressions defining valid identifier characters for completion triggers */
781786 identifierRegexps ?: Array < RegExp > ;
787+ /** Main completion method that provides suggestions for the given context */
782788 getCompletions ( editor : Editor , session : EditSession , position : Point , prefix : string , callback : CompleterCallback ) : void ;
789+ /** Returns documentation tooltip for a completion item */
783790 getDocTooltip ?( item : Completion ) : void | string | Completion ;
791+ /** Called when a completion item becomes visible */
784792 onSeen ?: ( editor : Ace . Editor , completion : Completion ) => void ;
793+ /** Called when a completion item is inserted */
785794 onInsert ?: ( editor : Ace . Editor , completion : Completion ) => void ;
795+ /** Cleanup method called when completion is cancelled */
786796 cancel ?( ) : void ;
797+ /** Unique identifier for this completer */
787798 id ?: string ;
799+ /** Characters that trigger autocompletion when typed */
788800 triggerCharacters ?: string [ ] ;
801+ /** Whether to hide inline preview text */
789802 hideInlinePreview ?: boolean ;
803+ /** Custom insertion handler for completion items */
790804 insertMatch ?: ( editor : Editor , data : Completion ) => void ;
791805 }
792806 interface CompletionOptions {
@@ -985,10 +999,15 @@ declare module "ace-code" {
985999 value : string ;
9861000 } > > ;
9871001 export interface StaticHighlightOptions {
1002+ /** Syntax mode (e.g., 'ace/mode/javascript'). Auto-detected from CSS class if not provided */
9881003 mode ?: string | SyntaxMode ;
1004+ /** Color theme (e.g., 'ace/theme/textmate'). Defaults to 'ace/theme/textmate' */
9891005 theme ?: string | Theme ;
1006+ /** Whether to trim whitespace from code content */
9901007 trim ?: boolean ;
1008+ /** Starting line number for display */
9911009 firstLineNumber ?: number ;
1010+ /** Whether to show line numbers gutter */
9921011 showGutter ?: boolean ;
9931012 }
9941013 export interface Operation {
@@ -1031,6 +1050,26 @@ declare module "ace-code" {
10311050 setLabel ?: boolean ;
10321051 inline ?: boolean ;
10331052 }
1053+ export interface TextAreaOptions {
1054+ /** Programming language mode for syntax highlighting (e.g., "javascript", "html", "css") */
1055+ mode ?: string ;
1056+ /** Visual theme for the editor appearance (e.g., "textmate", "monokai", "eclipse") */
1057+ theme ?: string ;
1058+ /** Line wrapping behavior - "off", "free", or specific column number like "40", "80" */
1059+ wrap ?: string | number ;
1060+ /** Font size in CSS units (e.g., "12px", "14px", "16px") */
1061+ fontSize ?: string ;
1062+ /** Whether to display the line number gutter on the left side */
1063+ showGutter ?: boolean | string ;
1064+ /** Keyboard handler/bindings to use - "ace", "vim", or "emacs" */
1065+ keybindings ?: string ;
1066+ /** Whether to show the print margin indicator line */
1067+ showPrintMargin ?: boolean | string ;
1068+ /** Whether to use soft tabs (spaces) instead of hard tabs */
1069+ useSoftTabs ?: boolean | string ;
1070+ /** Whether to show invisible characters like spaces and tabs */
1071+ showInvisibles ?: boolean | string ;
1072+ }
10341073 }
10351074 export const config : typeof import ( "ace-code/src/config" ) ;
10361075 export function edit ( el ?: string | ( HTMLElement & {
0 commit comments