mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
fix(types): add some return/parameter type annotations (#24867)
* fix(types): add some return/parameter type annotations * fix(types): narrow stdpath parameter further
This commit is contained in:

committed by
GitHub

parent
2bf3e82676
commit
b7d5b55f74
@@ -4092,7 +4092,8 @@ M.funcs = {
|
||||
|
||||
]=],
|
||||
name = 'getpos',
|
||||
params = { { 'expr', 'any' } },
|
||||
params = { { 'expr', 'string' } },
|
||||
returns = 'integer[]',
|
||||
signature = 'getpos({expr})',
|
||||
},
|
||||
getqflist = {
|
||||
@@ -10459,7 +10460,8 @@ M.funcs = {
|
||||
]=],
|
||||
fast = true,
|
||||
name = 'stdpath',
|
||||
params = { { 'what', 'any' } },
|
||||
params = { { 'what', "'cache'|'config'|'config_dirs'|'data'|'data_dirs'|'log'|'run'|'state'" } },
|
||||
returns = 'string|string[]',
|
||||
signature = 'stdpath({what})',
|
||||
},
|
||||
state = {
|
||||
|
Reference in New Issue
Block a user