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:
Maria José Solano
2023-08-27 01:41:32 -07:00
committed by GitHub
parent 2bf3e82676
commit b7d5b55f74
4 changed files with 12 additions and 6 deletions

View File

@@ -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 = {