Skip to content

Runtime type definitions setup#304

Merged
aatxe merged 17 commits intoluau-lang:primaryfrom
ffrostfall:runtime-type-definitions-setup
Jul 17, 2025
Merged

Runtime type definitions setup#304
aatxe merged 17 commits intoluau-lang:primaryfrom
ffrostfall:runtime-type-definitions-setup

Conversation

@ffrostfall
Copy link
Copy Markdown
Contributor

This PR adds in cli/commands/setup, which puts type definitions in the user directory. This PR also adds some type definitions to the remaining Lute libraries.

Type definition files are put into ~/.lute/typedefs/0.1.0/. We autogenerate the definitions file into a singular generated-types.luau file, containing a table { [fileName]: fileContent }. Upon usage of the setup command, we write this table into the type definition directory.

Copy link
Copy Markdown
Member

@aatxe aatxe left a comment

Choose a reason for hiding this comment

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

Looks pretty good, I would say you can split the remaining definition file additions into its own PR though since they're kinda orthogonal changes.

@checkraisefold
Copy link
Copy Markdown
Contributor

All type definition luau changes can be removed from this PR - extracted to and expanded in #351

@ffrostfall ffrostfall marked this pull request as ready for review July 16, 2025 23:58
@ffrostfall ffrostfall requested a review from aatxe July 16, 2025 23:58
@aatxe aatxe merged commit 76fa819 into luau-lang:primary Jul 17, 2025
7 checks passed
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.

3 participants