@@ -22,20 +22,19 @@ export type vimState = {
2222 searchState_ ?: SearchStateInterface ,
2323 lastEditActionCommand : actionCommand | void ,
2424 lastPastedText ?: string ,
25- lastMotion : any ,
25+ lastMotion ?: MotionFn | null ,
2626 options : { [ optionName : string ] : vimOption } ,
2727 lastEditInputState : InputStateInterface | void ,
2828 inputState : InputStateInterface ,
2929 visualLine : boolean ,
30- insertModeRepeat : any ,
30+ insertModeRepeat ?: number ,
3131 lastHSPos : number ,
3232 lastHPos : number ,
3333 wasInVisualBlock ?: boolean ,
34- insert ?: any ,
3534 insertEnd ?: Marker ,
3635 status : string ,
3736 exMode ?: boolean ,
38- mode ?: any ,
37+ mode ?: string ,
3938 expectLiteralNext ?: boolean ,
4039}
4140export type Marker = ReturnType < CodeMirror [ "setBookmark" ] >
@@ -276,7 +275,7 @@ export type operatorMotionCommand = allCommands & {
276275}
277276export type idleCommand = allCommands & { type : 'idle' }
278277export type exCommand = allCommands & { type : 'ex' }
279- export type keyToExCommand = allCommands & { type : 'keyToEx' , exArgs : { [ arg : string ] : any } }
278+ export type keyToExCommand = allCommands & { type : 'keyToEx' , exArgs : ExParams }
280279export type keyToKeyCommand = allCommands & { toKeys : string , type : 'keyToKey' }
281280
282281export type vimKey =
@@ -294,18 +293,18 @@ export type vimKeyMap = vimKey[];
294293
295294export interface InputStateInterface {
296295 prefixRepeat : string [ ] ;
297- motionRepeat : any [ ] ;
298- operator : any | undefined | null ;
296+ motionRepeat : string [ ] ;
297+ operator : string | undefined | null ;
299298 operatorArgs : OperatorArgs | undefined | null ;
300299 motion : string | undefined | null ;
301300 motionArgs : MotionArgs | null ;
302- keyBuffer : any [ ] ;
301+ keyBuffer : string [ ] ;
303302 registerName ?: string ;
304303 changeQueue : null | { inserted : string , removed : string [ ] } ;
305304 operatorShortcut ?: string ;
306305 selectedCharacter ?: string ;
307306 repeatOverride ?: number ;
308- changeQueueList ?: any [ ] ;
307+ changeQueueList ?: ( InputStateInterface [ "changeQueue" ] ) [ ] ;
309308 pushRepeatDigit ( n : string ) : void ;
310309 getRepeat ( ) : number ;
311310}
@@ -360,13 +359,13 @@ export type vimExCommands = {
360359}
361360
362361type vimExCommandsParams = {
363- args ?: any [ ] ,
362+ args ?: string [ ] ,
364363 input ?: string ,
365364 line ?: number ,
366- setCfg ?: any ,
365+ setCfg ?: { scope ?: string } ,
367366 argString ?: string ,
368367 lineEnd ?: number ,
369- commandName ?: any [ ] ,
368+ commandName ?: string ,
370369 callback ?: ( ) => any ,
371370 selectionLine ?: number ,
372371 selectionLineEnd ?: number
0 commit comments