Skip to content

Conversation

@aberrrant
Copy link

@aberrrant aberrrant commented May 8, 2023

Adds Luau types to the library. Used to make modular code easier to read and write. Comes with the nice addon of the ability for intellisense, so we can write code quickly without looking at the documentation over and over again.

@aberrrant aberrrant changed the title Luau Typings Luau Types May 9, 2023
@aberrrant
Copy link
Author

aberrrant commented May 10, 2023

Use of Profile<T> is if you have a template; call it "PlayerDataTemplate", you can use type PlayerDataTemplate = typeof(setmetatable(PlayerDataTemplate, {})) to get a type of that template, then Profile<PlayerDataTemplate> to create a type of Profile that's Data field is of type PlayerDataTemplate; it's super handy.

@aberrrant
Copy link
Author

@LM-loleris Any comment on this?

@lucasmz-dev
Copy link
Contributor

I would've thought something would've changed in 3 years of not messing with Roblox 😅

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