MadStudioRoblox / ProfileService

Universal session-locked savable table API
https://madstudioroblox.github.io/ProfileService/
Apache License 2.0
292 stars 157 forks source link

Luau Types #36

Open Malakai0 opened 1 year ago

Malakai0 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@LM-loleris Any comment on this?

lucasmz-dev commented 4 months ago

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