@alias中的table literal支持多行吗? #2647
Answered
by
CppCXY
xiangnanscu
asked this question in
Q&A
-
我有一个这样的定义: ---@alias PayloadType {size:string,lifetime:number, bucket:string,key:string, key_secret?: string,key_id?:string,success_action_status?:number}
---@param options PayloadType
---@return {policy:string, OSSAccessKeyId:string, signature:string, success_action_status?:number}
function Field.get_payload(self, options)
end 定义 |
Beta Was this translation helpful? Give feedback.
Answered by
CppCXY
Apr 30, 2024
Replies: 2 comments
Answer selected by
xiangnanscu
-
可以用 ---@class PayloadType
---@field size string
---@field lifetime number
---@field bucket string
---@field key string
---@field key_secret string?
---@field key_id string?
---@field success_action_status number?
---@param options PayloadType
---@return {policy:string, OSSAccessKeyId:string, signature:string, success_action_status?:number}
function Field.get_payload(self, options)
end
---
Field:get_payload {
-- 主動觸發 auto complete 時,有字段提示
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
暂时不支持