docs: stdpath() type #32480

This commit is contained in:
phanium
2025-02-17 05:33:56 +08:00
committed by GitHub
parent 0e8e4a07f5
commit a75b09019f
2 changed files with 22 additions and 0 deletions

View File

@@ -11250,6 +11250,20 @@ M.funcs = {
returns = 'string|string[]',
signature = 'stdpath({what})',
},
stdpath__1 = {
args = 1,
fast = true,
name = 'stdpath',
params = { { 'what', "'cache'|'config'|'data'|'log'|'run'|'state'" } },
returns = 'string',
},
stdpath__2 = {
args = 1,
fast = true,
name = 'stdpath',
params = { { 'what', "'config_dirs'|'data_dirs'" } },
returns = 'string[]',
},
str2float = {
args = 1,
base = 1,