Skip to content

Conversation

@kawarimidoll
Copy link
Contributor

Fix several Lua type annotations across multiple files:

  • Change '"string"' to "string" (they are same in lua_ls, but former is incorrect in emmylua)
  • Change fun(): -> T to fun(): T (correct return type syntax)
  • Change array to any[] (correct type annotation)

Removed unnecessary quotes from Lua type alias annotations for
better compatibility with both of lua-language-server and EmmyLua.
Update type alias annotations to use the correct Lua syntax for function
types, replacing '->' with ':' for return types.
Replace `array` type with `any[]` in the type annotation.
Copy link
Owner

@monaqa monaqa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@monaqa monaqa merged commit f263475 into monaqa:master Dec 21, 2025
2 checks passed
@kawarimidoll kawarimidoll deleted the fix-type-annotation branch December 22, 2025 01:57
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

Successfully merging this pull request may close these issues.

2 participants