@@ -202,8 +202,8 @@ export class Neovim extends BaseApi {
202
202
/**
203
203
* Gets a map of buffer-local |user-commands|.
204
204
*
205
- * @param { Object } options Optional parameters (currently not used)
206
- * @return { Object } Map of maps describing commands
205
+ * @param options Optional parameters (currently not used)
206
+ * @return Map of maps describing commands
207
207
*/
208
208
getCommands ( options = { } ) : Promise < Command > {
209
209
return this . request ( `${ this . prefix } get_commands` , [ options ] ) ;
@@ -248,7 +248,7 @@ export class Neovim extends BaseApi {
248
248
/**
249
249
* Gets the current window
250
250
*
251
- * @return { Window } Window handle
251
+ * @return Window handle
252
252
*/
253
253
get window ( ) : AsyncWindow {
254
254
return this . getWindow ( ) ;
@@ -257,7 +257,7 @@ export class Neovim extends BaseApi {
257
257
/**
258
258
* Sets the current window
259
259
*
260
- * @param { Window } Window handle
260
+ * @param win Window handle
261
261
*/
262
262
set window ( win : AsyncWindow ) {
263
263
if ( win instanceof Window ) this . setWindow ( win ) ;
@@ -287,7 +287,7 @@ export class Neovim extends BaseApi {
287
287
/**
288
288
* Sets the current window
289
289
*
290
- * @param { Window } Window handle
290
+ * @param win Window handle
291
291
*/
292
292
setWindow ( win : Window ) {
293
293
// Throw error if win is not instance of Window?
@@ -306,7 +306,7 @@ export class Neovim extends BaseApi {
306
306
/**
307
307
* Changes the global working directory
308
308
*
309
- * @param { String } Directory path
309
+ * @param dir Directory path
310
310
*
311
311
*/
312
312
set dir ( dir : string ) {
@@ -365,7 +365,7 @@ export class Neovim extends BaseApi {
365
365
/**
366
366
* Gets the current mode. |mode()| "blocking" is true if Nvim is waiting for input.
367
367
*
368
- * @return { Object } Dictionary { "mode": String, "blocking": Boolean }
368
+ * @return Mode info
369
369
*/
370
370
get mode ( ) : Promise < { mode : string ; blocking : boolean } > {
371
371
return this . request ( `${ this . prefix } get_mode` ) ;
@@ -374,7 +374,7 @@ export class Neovim extends BaseApi {
374
374
/**
375
375
* Gets map of defined colors
376
376
*
377
- * @return { Object } Color map
377
+ * @return Color map
378
378
*/
379
379
get colorMap ( ) : Promise < { [ name : string ] : number } > {
380
380
return this . request ( `${ this . prefix } get_color_map` ) ;
@@ -383,8 +383,8 @@ export class Neovim extends BaseApi {
383
383
/**
384
384
* Get color by name
385
385
*
386
- * @param { String } name Color name
387
- * @return { Number } Color value
386
+ * @param name Color name
387
+ * @return Color value
388
388
*/
389
389
getColorByName ( name : string ) : Promise < number > {
390
390
return this . request ( `${ this . prefix } get_color_by_name` , [ name ] ) ;
@@ -393,9 +393,9 @@ export class Neovim extends BaseApi {
393
393
/**
394
394
* Get highlight by name or id
395
395
*
396
- * @param { String|Number } nameOrId Name or ID
397
- * @param { Boolean } isRgb Should export RGB colors
398
- * @return { Object } Highlight definition map
396
+ * @param nameOrId Name or ID
397
+ * @param isRgb Should export RGB colors
398
+ * @return Highlight definition map
399
399
*/
400
400
getHighlight (
401
401
nameOrId : string | number ,
@@ -411,9 +411,9 @@ export class Neovim extends BaseApi {
411
411
/**
412
412
* Get highlight definition by name
413
413
*
414
- * @param { String } name Highlight group name
415
- * @param { Boolean } isRgb Should export RGB colors
416
- * @return { Object } Highlight definition map
414
+ * @param name Highlight group name
415
+ * @param isRgb Should export RGB colors
416
+ * @return Highlight definition map
417
417
*/
418
418
getHighlightByName ( name : string , isRgb = true ) : Promise < object > {
419
419
return this . request ( `${ this . prefix } get_hl_by_name` , [ name , isRgb ] ) ;
@@ -422,9 +422,9 @@ export class Neovim extends BaseApi {
422
422
/**
423
423
* Get highlight definition by id |hlID()|
424
424
*
425
- * @param { Number } id Highlight id as returned by |hlID()|
426
- * @param { Boolean } isRgb Should export RGB colors
427
- * @return { Object } Highlight definition map
425
+ * @param id Highlight id as returned by |hlID()|
426
+ * @param isRgb Should export RGB colors
427
+ * @return Highlight definition map
428
428
*/
429
429
getHighlightById ( id : number , isRgb = true ) : Promise < object > {
430
430
return this . request ( `${ this . prefix } get_hl_by_id` , [ id , isRgb ] ) ;
@@ -839,8 +839,8 @@ export class Neovim extends BaseApi {
839
839
* existing namespace, the associated id is returned. If `name`
840
840
* is an empty string a new, anonymous namespace is created.
841
841
*
842
- * @param { String } name Namespace name or empty string
843
- * @return { Number } Namespace id
842
+ * @param name Namespace name or empty string
843
+ * @return Namespace id
844
844
*/
845
845
createNamespace ( name = '' ) : Promise < number > {
846
846
return this . request ( `${ this . prefix } create_namespace` , [ name ] ) ;
@@ -962,10 +962,9 @@ export class Neovim extends BaseApi {
962
962
* and `relative` must be reconfigured together. Only changing a
963
963
* subset of these is an error.
964
964
*
965
- * @param {Window } window Window handle
966
- * @param {Number } width Width of window (in character cells)
967
- * @param {Number } height Height of window (in character cells)
968
- * @Param {Object} options Options object
965
+ * @param window Window handle
966
+ * @param options height, width of window (in character cells)
967
+ * @Param Options object
969
968
*/
970
969
private winConfig ( window : Window , options : object = { } ) {
971
970
return window . config ( options ) ;
0 commit comments