-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
---@alias EditorAttrTypeAlias
---| 'ATTR_BASE'
---| 'ATTR_BASE_RATIO'
---| 'ATTR_ALL_RATIO'
---@param attr_element string
function test(attr_element) end
---@param attr_type EditorAttrTypeAlias
function add_attr(attr_type)
if attr_type ~= 'ATTR_BASE' then
end
test(attr_type) -- 预期 `string`,但得到 `(("ATTR_BASE"|"ATTR_BASE_RATIO"...)|"ATTR_BASE")`。
end
Metadata
Metadata
Assignees
Labels
No labels