fix: wrong type for bar.__new and clear.__new
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
|
|
||||||
-- luacheck: globals Command Url cx fs ps rt th ui ya
|
-- luacheck: globals Command Url cx fs ps rt th ui ya
|
||||||
|
|
||||||
---@alias unknown any
|
|
||||||
|
|
||||||
---@alias Color string
|
---@alias Color string
|
||||||
---@alias Direction integer
|
|
||||||
---@alias Position integer
|
---@alias Position integer
|
||||||
---@alias Stdio integer
|
---@alias Stdio integer
|
||||||
|
|
||||||
@@ -933,7 +930,7 @@ ya = ya
|
|||||||
-- | `style` | [`Style`](#style) |
|
-- | `style` | [`Style`](#style) |
|
||||||
-- | Return | `self` |
|
-- | Return | `self` |
|
||||||
---@field style fun(self: self, style: ui.Style): self
|
---@field style fun(self: self, style: ui.Style): self
|
||||||
---@overload fun(value: Direction): ui.Bar
|
---@overload fun(edge: ui.Edge): ui.Bar
|
||||||
|
|
||||||
-- Create a border:
|
-- Create a border:
|
||||||
-- ```lua
|
-- ```lua
|
||||||
@@ -1039,76 +1036,76 @@ ya = ya
|
|||||||
-- | Return | `self` \| [`Rect`](#rect) |
|
-- | Return | `self` \| [`Rect`](#rect) |
|
||||||
-- If `rect` is not specified, it returns the current area.
|
-- If `rect` is not specified, it returns the current area.
|
||||||
---@field area fun(self: self, rect: ui.Rect?): self|ui.Rect
|
---@field area fun(self: self, rect: ui.Rect?): self|ui.Rect
|
||||||
---@overload fun(): ui.Clear
|
---@overload fun(rect: ui.Rect): ui.Clear
|
||||||
|
|
||||||
-- Align is used to set the alignment of an element, such as a [Line](#line) or [Text](#text).
|
-- Align is used to set the alignment of an element, such as a [Line](#line) or [Text](#text).
|
||||||
---@class (exact) ui.Align
|
---@class (exact) ui.Align
|
||||||
-- Align to the left.
|
-- Align to the left.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field LEFT unknown
|
---@field LEFT self
|
||||||
-- Align to the center.
|
-- Align to the center.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field CENTER unknown
|
---@field CENTER self
|
||||||
-- Align to the right.
|
-- Align to the right.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field RIGHT unknown
|
---@field RIGHT self
|
||||||
|
|
||||||
--
|
--
|
||||||
---@class (exact) ui.Wrap
|
---@class (exact) ui.Wrap
|
||||||
-- Disables wrapping.
|
-- Disables wrapping.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field NO unknown
|
---@field NO self
|
||||||
-- Enables wrapping.
|
-- Enables wrapping.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field YES unknown
|
---@field YES self
|
||||||
-- Enables wrapping and trims the leading whitespace.
|
-- Enables wrapping and trims the leading whitespace.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field TRIM unknown
|
---@field TRIM self
|
||||||
|
|
||||||
--
|
--
|
||||||
---@class (exact) ui.Edge
|
---@class (exact) ui.Edge
|
||||||
-- No edge is applied.
|
-- No edge is applied.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field NONE unknown
|
---@field NONE self
|
||||||
-- Applies the top edge.
|
-- Applies the top edge.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field TOP unknown
|
---@field TOP self
|
||||||
-- Applies the right edge.
|
-- Applies the right edge.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field RIGHT unknown
|
---@field RIGHT self
|
||||||
-- Applies the bottom edge.
|
-- Applies the bottom edge.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field BOTTOM unknown
|
---@field BOTTOM self
|
||||||
-- Applies the left edge.
|
-- Applies the left edge.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field LEFT unknown
|
---@field LEFT self
|
||||||
-- Applies all edges.
|
-- Applies all edges.
|
||||||
-- | | |
|
-- | | |
|
||||||
-- | ---- | --------- |
|
-- | ---- | ------ |
|
||||||
-- | Type | `unknown` |
|
-- | Type | `Self` |
|
||||||
---@field ALL unknown
|
---@field ALL self
|
||||||
|
|
||||||
|
|
||||||
-- You can access all states within [sync context](/docs/plugins/overview#sync-context) through `cx`.
|
-- You can access all states within [sync context](/docs/plugins/overview#sync-context) through `cx`.
|
||||||
@@ -2427,11 +2424,11 @@ ya = ya
|
|||||||
-- | Return | `Self` |
|
-- | Return | `Self` |
|
||||||
---@field List fun(value: string|ui.Span|ui.Line|ui.Text|(string|ui.Span|ui.Line|ui.Text)[]): ui.List
|
---@field List fun(value: string|ui.Span|ui.Line|ui.Text|(string|ui.Span|ui.Line|ui.Text)[]): ui.List
|
||||||
-- Make a new bar.
|
-- Make a new bar.
|
||||||
-- | In/Out | Type |
|
-- | In/Out | Type |
|
||||||
-- | ------- | ----------- |
|
-- | ------ | --------------- |
|
||||||
-- | `value` | `Direction` |
|
-- | `edge` | [`Edge`](#edge) |
|
||||||
-- | Return | `Self` |
|
-- | Return | `Self` |
|
||||||
---@field Bar fun(value: Direction): ui.Bar
|
---@field Bar fun(edge: ui.Edge): ui.Bar
|
||||||
-- Make a new border.
|
-- Make a new border.
|
||||||
-- | In/Out | Type |
|
-- | In/Out | Type |
|
||||||
-- | ------ | --------------- |
|
-- | ------ | --------------- |
|
||||||
@@ -2448,6 +2445,6 @@ ya = ya
|
|||||||
-- | ------ | --------------- |
|
-- | ------ | --------------- |
|
||||||
-- | `rect` | [`Rect`](#rect) |
|
-- | `rect` | [`Rect`](#rect) |
|
||||||
-- | Return | `Self` |
|
-- | Return | `Self` |
|
||||||
---@field Clear fun(): ui.Clear
|
---@field Clear fun(rect: ui.Rect): ui.Clear
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user