@@ -783,7 +783,10 @@ export namespace Ace {
783
783
closingBracketBlock ( session : EditSession , bracket : string , row : number , column : number , typeRe ?: RegExp ) : Range | undefined ;
784
784
}
785
785
786
- type BehaviorAction = ( state : string , action : string , editor : Editor , session : EditSession , text : string | Range ) => ( { text : string , selection : number [ ] } | Range ) & { [ key : string ] : any } | undefined ;
786
+ type BehaviorAction = ( state : string | string [ ] , action : string , editor : Editor , session : EditSession , text : string | Range ) => ( {
787
+ text : string ,
788
+ selection : number [ ]
789
+ } | Range ) & { [ key : string ] : any } | undefined ;
787
790
type BehaviorMap = Record < string , Record < string , BehaviorAction > > ;
788
791
789
792
interface Behaviour {
@@ -841,21 +844,21 @@ export namespace Ace {
841
844
842
845
getTokenizer ( ) : Tokenizer ;
843
846
844
- toggleCommentLines ( state : any ,
847
+ toggleCommentLines ( state : string | string [ ] ,
845
848
session : EditSession ,
846
849
startRow : number ,
847
850
endRow : number ) : void ;
848
851
849
- toggleBlockComment ( state : any ,
852
+ toggleBlockComment ( state : string | string [ ] ,
850
853
session : EditSession ,
851
854
range : Range ,
852
855
cursor : Point ) : void ;
853
856
854
- getNextLineIndent ( state : any , line : string , tab : string ) : string ;
857
+ getNextLineIndent ( state : string | string [ ] , line : string , tab : string ) : string ;
855
858
856
- checkOutdent ( state : any , line : string , input : string ) : boolean ;
859
+ checkOutdent ( state : string | string [ ] , line : string , input : string ) : boolean ;
857
860
858
- autoOutdent ( state : any , doc : EditSession , row : number ) : void ;
861
+ autoOutdent ( state : string | string [ ] , doc : EditSession , row : number ) : void ;
859
862
860
863
// TODO implement WorkerClient types
861
864
createWorker ( session : EditSession ) : any ;
@@ -864,7 +867,7 @@ export namespace Ace {
864
867
865
868
getKeywords ( append ?: boolean ) : Array < string | RegExp > ;
866
869
867
- getCompletions ( state : string ,
870
+ getCompletions ( state : string | string [ ] ,
868
871
session : EditSession ,
869
872
pos : Point ,
870
873
prefix : string ) : Completion [ ] ;
0 commit comments