Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colors fg and bg function annotations #1

Closed
Sarctiann opened this issue Apr 29, 2024 · 0 comments
Closed

colors fg and bg function annotations #1

Sarctiann opened this issue Apr 29, 2024 · 0 comments

Comments

@Sarctiann
Copy link

The annotations for colors.fg() and colors.bg() need to change from

---@field public bg fun(color: number): string Get a string to change the background to the passed color
---@field public fg fun(color: number): string Get a string to change the foreground to the passed color

to this

---@field public bg fun(color: number | table): string Get a string to change the background to the passed color
---@field public fg fun(color: number| table): string Get a string to change the foreground to the passed color

to avoid complaints when passing colors.truecolor()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant