Remote/Bindable Function/Event, Luau Typing Feature

As a developer it’s pretty annoying to try to properly type your bindables and remotes. You generally either have to make a wrapper (slow, cumbersome, hard to read) or manually make sure every access point correctly interprets the native anys (vulnerable to user error, confusing, difficult).

I want a string property on these objects. Let’s call it LuauType. Whatever I write into that LuauType should be used as the object’s type when running static analysis.

i.e. I could write ability: string, position: Vector3 into the LuauType of a RemoteEvent and Roblox script analysis would be able to correctly type the object and produce appropriate warnings and hints.

Perhaps function objects would need two properties, one for params and one for returns.

2 Likes

That not really an issue

local FireServer = RemoteEvent.FireServer::(RemoteEvent, arg1:bufffer|number)->()
1 Like