fix: Wrap inner type in brackets

This commit is contained in:
2025-10-22 02:34:51 +02:00
parent 08f5c4533a
commit b8bcabd979
2 changed files with 7 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ fn action() {
---| "broadcast"
---@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
");
}