@@ -77,6 +77,8 @@ export interface GetBufInfoDictArg {
7777 * passed as the second argument:
7878 *
7979 * mylist->appendbufline(buf, lnum)
80+ *
81+ * Return type: `Number`
8082 */
8183export async function appendbufline (
8284 denops : Denops ,
@@ -105,6 +107,8 @@ export async function appendbufline(
105107 * Can also be used as a `method`:
106108 *
107109 * let bufnr = 'somename'->bufadd()
110+ *
111+ * Return type: `Number`
108112 */
109113export async function bufadd (
110114 denops : Denops ,
@@ -140,6 +144,8 @@ export async function bufadd(
140144 *
141145 * let exists = 'somename'->bufexists()
142146 *
147+ * Return type: `Number`
148+ *
143149 * Obsolete name: buffer_exists().
144150 */
145151export async function bufexists (
@@ -158,6 +164,8 @@ export async function bufexists(
158164 * Can also be used as a `method`:
159165 *
160166 * let listed = 'somename'->buflisted()
167+ *
168+ * Return type: `Number`
161169 */
162170export async function buflisted (
163171 denops : Denops ,
@@ -180,6 +188,8 @@ export async function buflisted(
180188 * Can also be used as a `method`:
181189 *
182190 * eval 'somename'->bufload()
191+ *
192+ * Return type: `Number`
183193 */
184194export async function bufload (
185195 denops : Denops ,
@@ -196,6 +206,8 @@ export async function bufload(
196206 * Can also be used as a `method`:
197207 *
198208 * let loaded = 'somename'->bufloaded()
209+ *
210+ * Return type: `Number`
199211 */
200212export async function bufloaded (
201213 denops : Denops ,
@@ -242,6 +254,8 @@ export async function bufloaded(
242254 * bufname("%") name of current buffer
243255 * bufname("file2") name of buffer where "file2" matches.
244256 *
257+ * Return type: `String`
258+ *
245259 * Obsolete name: buffer_name().
246260 */
247261export async function bufname (
@@ -278,6 +292,8 @@ export async function bufname(
278292 *
279293 * echo bufref->bufnr()
280294 *
295+ * Return type: `Number`
296+ *
281297 * Obsolete name: buffer_number().
282298 *
283299 * Obsolete name for bufnr("$"): last_buffer_nr().
@@ -304,6 +320,8 @@ export async function bufnr(
304320 * Can also be used as a `method`:
305321 *
306322 * FindBuffer()->bufwinid()
323+ *
324+ * Return type: `Number`
307325 */
308326export async function bufwinid (
309327 denops : Denops ,
@@ -326,6 +344,8 @@ export async function bufwinid(
326344 * Can also be used as a `method`:
327345 *
328346 * FindBuffer()->bufwinnr()
347+ *
348+ * Return type: `Number`
329349 */
330350export async function bufwinnr (
331351 denops : Denops ,
@@ -351,6 +371,8 @@ export async function bufwinnr(
351371 * Can also be used as a `method`:
352372 *
353373 * GetBuffer()->deletebufline(1)
374+ *
375+ * Return type: `Number`
354376 */
355377export async function deletebufline (
356378 denops : Denops ,
@@ -437,6 +459,8 @@ export async function deletebufline(
437459 * Can also be used as a `method`:
438460 *
439461 * GetBufnr()->getbufinfo()
462+ *
463+ * Return type: list<dict<any>>
440464 */
441465export function getbufinfo (
442466 denops : Denops ,
@@ -492,6 +516,8 @@ export async function getbufinfo(
492516 * Can also be used as a `method`:
493517 *
494518 * GetBufnr()->getbufline(lnum)
519+ *
520+ * Return type: list<string>
495521 */
496522export async function getbufline (
497523 denops : Denops ,
@@ -527,6 +553,8 @@ export async function getbufline(
527553 * Can also be used as a `method`:
528554 *
529555 * GetBufnr()->getbufvar(varname)
556+ *
557+ * Return type: any, depending on **{varname}**
530558 */
531559export function getbufvar (
532560 denops : Denops ,
@@ -566,6 +594,8 @@ export function getbufvar(
566594 * Can also be used as a `method`:
567595 *
568596 * GetBufnr()->getchangelist()
597+ *
598+ * Return type: list<any>
569599 */
570600export async function getchangelist (
571601 denops : Denops ,
@@ -596,6 +626,8 @@ export async function getchangelist(
596626 * Can also be used as a `method`:
597627 *
598628 * GetBufnr()->getmarklist()
629+ *
630+ * Return type: list<dict<any>> or list<any>
599631 */
600632export async function getmarklist (
601633 denops : Denops ,
@@ -635,6 +667,8 @@ export async function getmarklist(
635667 * third argument:
636668 *
637669 * GetText()->setbufline(buf, lnum)
670+ *
671+ * Return type: `Number`
638672 */
639673export async function setbufline (
640674 denops : Denops ,
@@ -666,6 +700,8 @@ export async function setbufline(
666700 * third argument:
667701 *
668702 * GetValue()->setbufvar(buf, varname)
703+ *
704+ * Return type: `Number`
669705 */
670706export async function setbufvar (
671707 denops : Denops ,
@@ -686,6 +722,8 @@ export async function setbufvar(
686722 * Can also be used as a `method`:
687723 *
688724 * GetBufname()->swapname()
725+ *
726+ * Return type: `String`
689727 */
690728export async function swapname (
691729 denops : Denops ,
0 commit comments