CriShoux
Rroblox-ts
•Created by CriShoux on 4/18/2025 in #help
Profiling Slow Roblox-TS Compilation
Is there any profiling tool that would allow me to identify compilation hotspots in my roblox-ts codebase? I have tried enabling options like incremental compiling in tsconfig and it helped slightly but I still have to wait at least a whole second after saving a file for
rbxtsc watch
to finish compiling my code and then Rojo syncing it. A tool to help me diagnose slow compilation in my codebase may help me increase compilation speed without doing tedious tasks like annotating the return type of every function.
I've attached a video of me making a change in a single file of my codebase and showing the 1-2 second delay in compilation. When I'm trying to make quick changes, it is a real hassle to tab into Roblox Studio and having to wait until Rojo syncs to be to playtest with the changes I made. I just want to be able to tab into Studio and immediately press F5 to go into play mode, like I can with my Luau codebases.72 replies
Rroblox-ts
•Created by CriShoux on 5/12/2023 in #help
use optional method in interface as type to array
i have this interface (notice how the methods are made optional)
i have this array
the problem with the type of the array is that it keeps the 'optional-ability' from the type of CharacterAdded. This is causing me problems elsewhere in the code. How can I essentially omit the optional part?
The current type of 'characterAddedFuncs':
I want it to be
4 replies