fix: wrong timeout type annotation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user