N

_types

namespace _types

Types

Any supported colour string: a HexColor or RgbaColor.

A Unicode emoji, or a custom emoji's name then : and its id.

The set of all falsy values.

A hexadecimal colour string prefixed with #.

An http or https URL, as a url setting holds it.

A string union that keeps T's literals for autocomplete while still accepting any other string, for Discord's open-ended enums (typography variants, colour tokens, sizes).

The result of a predicate: any Truthy or Falsy value.

An rgba(...) colour string.

A Discord id.

The set of all truthy values.

Widens a literal type to its primitive base (e.g. 'a' to string, 1 to number).

T without the keys K. Unlike Omit, it keeps the known keys of a type that also has an index signature.