Skip to main content
Version: 26.9.1

Aliases

Origin​

A set of constants representing the origin of a position.

Alias"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "center" | "hovered"

Sendable​

A value that can be sent across threads. See Sendable value for more details.

Aliasnil | boolean | number | string | Url | { [Sendable]: Sendable }

Renderable​

An element that can be rendered.

AliasBar | Border | Clear | Gauge | Input | Line | List | Text

AsPos​

A value that can be covariantly treated as a Pos.

AliasPos | { [1]: Origin, x: integer?, y: integer?, w: integer?, h: integer? }

AsSpan​

A value that can be covariantly treated as a Span.

Aliasstring | Span

AsLine​

A value that can be covariantly treated as a Line.

Aliasstring | Span | Line | (string|Span|Line)[]

AsText​

A value that can be covariantly treated as a Text.

Aliasstring | Span | Line | (string|Span|Line)[]

AsColor​

A set of constants representing colors.

Alias"black" | "white" | "red" | "lightred" | "green" | "lightgreen" | "yellow" | "lightyellow" | "blue" | "lightblue" | "magenta" | "lightmagenta" | "cyan" | "lightcyan" | "gray" | "darkgray" | "reset" | string