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

Luau Types #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Luau Types #36

wants to merge 4 commits into from

Conversation

Malakai0
Copy link

@Malakai0 Malakai0 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.

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

Malakai0 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.

@Malakai0
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