-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
--- @meta
--- @param what 'cache'|'config'|'config_dirs'|'data'|'data_dirs'|'log'|'run'|'state'
--- @return string|string[]
function stdpath(what) end
--- @param what 'cache'|'config'|'data'|'log'|'run'|'state'
--- @return string
function stdpath(what) end
--- @param what 'config_dirs'|'data_dirs'
--- @return string[]
function stdpath(what) end
--- @type string
local a = stdpath('cache') -- error (wrong)
--- @type string[]
local b = stdpath('config_dirs') -- error (wrong)
local c = stdpath('config_dirs') .. 'c' -- no error (wrong)
Metadata
Metadata
Assignees
Labels
No labels