fix: Wrap inner type in brackets
This commit is contained in:
@@ -16,7 +16,7 @@ fn action_type() {
|
||||
---@class ActionType
|
||||
---@field action
|
||||
---| "broadcast"
|
||||
---@field extras table<string, string>?
|
||||
---@field extras (table<string, string>)?
|
||||
local ActionType
|
||||
"#);
|
||||
}
|
||||
@@ -58,9 +58,9 @@ fn action() {
|
||||
---@class Action
|
||||
---@field action
|
||||
---| "broadcast"
|
||||
---@field extras table<string, string>?
|
||||
---@field extras (table<string, string>)?
|
||||
---@field label string
|
||||
---@field clear boolean?
|
||||
---@field clear (boolean)?
|
||||
local Action
|
||||
"#);
|
||||
}
|
||||
@@ -81,10 +81,10 @@ fn notification() {
|
||||
insta::assert_snapshot!(<Notification as Typed>::generate_full().unwrap(), @r"
|
||||
---@class Notification
|
||||
---@field title string
|
||||
---@field message string?
|
||||
---@field tags string[]?
|
||||
---@field priority Priority?
|
||||
---@field actions Action[]?
|
||||
---@field message (string)?
|
||||
---@field tags ((string)[])?
|
||||
---@field priority (Priority)?
|
||||
---@field actions ((Action)[])?
|
||||
local Notification
|
||||
");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user