MadStudioRoblox / ProfileService

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

Give us `Profile` and `ProfileStore` types #23

Open lucasmz-dev opened 2 years ago

lucasmz-dev commented 2 years ago

It would be really nice to have exported types for Profile and ProfileStore. These can be easily made using typeof and setmetatable.

export type Profile = typeof(
    setmetatable({
        Data = {},
        -- All other members, including private ones. (Setting this as the return type of LoadProfileAsync would be nice)
    }, Profile)
)

Currently I don't get auto completion on Roblox's script editor, this would help alot.

LM-loleris commented 2 years ago

Will look into it for the next iteration of ProfileService

Malakai0 commented 1 year ago

36 addresses this :)