...
type AssetInfo = typeof(require(PATH_HERE).AssetInfo)
local MyLibrary: {[string]: AssetInfo} = {
["12345"] = {
-- Autocomplete fails here.
-- If you start typing "P", "Price" does not get suggested.
}
}
...
Hello! Thank you for your report, and I’m sorry to hear you’re running into issues with autocomplete. Do you mind sharing a complete minimal example? Perhaps as an RBXL file that I can open directly?
In the example above, for Script 2, you might be able to write:
local OtherModule = require(PATH_HERE)
type AssetInfo = OtherModule.AssetInfo
local MyLibrary: {[string]: AssetInfo} = {
["12345"] = { --[[ ... ]] }
}
… and see that autocomplete is working as expected, as well. That seems to work for my Roblox Studio.