Roblox TS Expecting all Luau modules to have a default property

No description
No description
No description
16 Replies
Acurrz
AcurrzOP3mo ago
No description
Acurrz
AcurrzOP3mo ago
No description
Tester
Tester3mo ago
Cause you do export default Do export = With default I think it gives you the ability to do Multiexport if you use default and still having import Something instead of import {Something} at the same time
Acurrz
AcurrzOP3mo ago
I fixed that then ran into another issue with this
No description
Tester
Tester3mo ago
What is it?
Acurrz
AcurrzOP3mo ago
in roblox it translates to numbered index for the returned functions
Tester
Tester3mo ago
What Numbered index? Wdym
Acurrz
AcurrzOP3mo ago
No description
Tester
Tester3mo ago
Cause you're using destruction [value1, value2] =
Acurrz
AcurrzOP3mo ago
what is the correct syntax in ts? apologies im still very new to ts
Tester
Tester3mo ago
It assumes that you're returning a table and it's apparently doing the proper thing Cause you're trying to get the first and the second values if the table For what? Tuple return?
Acurrz
AcurrzOP3mo ago
returning it as a tuple yes
Tester
Tester3mo ago
return $tuple(value1, value2)
Acurrz
AcurrzOP3mo ago
No description
Acurrz
AcurrzOP3mo ago
i think this is it
Tester
Tester3mo ago
👍

Did you find this page helpful?