Incorrect type declaration for ‘game.RunService’ property

Recently, a property was added to the DataModel called game.RunService which guarantees a reference to the RunService, regardless of its name.

image

Unfortunately, this was implemented incorrectly.

image

The type annotation describes RunService as a type of Instance? rather than RunService.
As a result, there’s no auto-complete for any of the member functions or events when indexing the RunService through this property.

Expected behavior

The type of this property should be RunService in Luau so autocomplete can correctly take advantage of it.

It’s an intentional but temporary artifact of the flagging process. Already reported here: