chore(types): add annotations for block and refresh on winchanged (#40)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
@@ -1,15 +1,33 @@
|
||||
---@meta
|
||||
|
||||
---@class NuiSignalValue: boolean
|
||||
local NuiSignalValue = require("nui-components.signal.value")
|
||||
|
||||
---@return boolean
|
||||
function NuiSignalValue:negate() end
|
||||
|
||||
---@class NuiSignal
|
||||
---@field is_loading boolean | NuiSignalValue
|
||||
---@field text string
|
||||
local AvanteSignal = require("nui-components.signal")
|
||||
|
||||
---@return any
|
||||
function AvanteSignal:get_value() end
|
||||
|
||||
---@class NuiRenderer
|
||||
_G.AvanteRenderer = require("nui-components.renderer")
|
||||
local AvanteRenderer = require("nui-components.renderer")
|
||||
|
||||
---@class NuiComponent
|
||||
_G.AvanteComponent = require("nui-components.component")
|
||||
---@field winid integer | nil
|
||||
local AvanteComponent = require("nui-components.component")
|
||||
|
||||
---@param opts table<string, any>
|
||||
---@return NuiRenderer
|
||||
function AvanteRenderer.create(opts) end
|
||||
|
||||
---@return NuiComponent[]
|
||||
function AvanteRenderer:get_focusable_components() end
|
||||
|
||||
---@param body fun():NuiComponent
|
||||
function AvanteRenderer:render(body) end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user