As per Luau’s documentation (bottom of Syntax - Luau (luau-lang.org)), I am exporting a custom Type definition in a ModuleScript. Shown below
local InventoryItem = {}
-- some other code
export type InventoryItemType = {id: string, count: number, isStackable: boolean, displayName: string, itemType: string, localUIFrame: Frame?}
return InventoryItem
In my other module, I am requiring that InventoryItem module like so
However, my Intellisense is not recognizing the type and giving me autocompletions or type hints for it.
It only does so if I use it in the same ModuleScript I defined the type in (shown below)
How can I make the Roblox script editor’s intellisense autocomplete the exported custom type?