Update type annotations for setup.cmdline (#1194)

This commit is contained in:
yuys13
2022-10-02 23:24:50 +09:00
committed by GitHub
parent da2d88ec1a
commit b0dff0ec4f
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ end
---Set configuration for cmdline
---@param c cmp.ConfigSchema
---@param cmdtype string
---@param cmdtypes string|string[]
config.set_cmdline = function(c, cmdtypes)
for _, cmdtype in ipairs(type(cmdtypes) == 'table' and cmdtypes or { cmdtypes }) do
local revision = (config.cmdline[cmdtype] or {}).revision or 1