fix: wrong timeout type annotation

This commit is contained in:
sxyazi
2025-06-24 13:08:53 +08:00
parent 42f64c01c4
commit 5eea960d15

View File

@@ -2027,11 +2027,11 @@ ya = ya
-- level = "info", -- level = "info",
-- } -- }
-- ``` -- ```
-- | In/Out | Type | -- | In/Out | Type |
-- | ------ | ---------------------------------------------------------------------- | -- | ------ | ------------------------------------------------------------------------------------------ |
-- | `opts` | `{ title: string, content: string, timeout: number?, level: string? }` | -- | `opts` | `{ title: string, content: string, timeout: number, level: "info"\|"warn"\|"error"\|nil }` |
-- | Return | `unknown` | -- | Return | `unknown` |
---@field notify fun(opts: { title: string, content: string, timeout: number?, level: string? }): unknown ---@field notify fun(opts: { title: string, content: string, timeout: number, level: "info"|"warn"|"error"|nil }): unknown
-- Append messages to [the log file](/docs/plugins/overview#logging) at the debug level: -- Append messages to [the log file](/docs/plugins/overview#logging) at the debug level:
-- ```lua -- ```lua
-- ya.dbg("Hello", "World!") -- Multiple arguments are supported -- ya.dbg("Hello", "World!") -- Multiple arguments are supported