Skip to content

Commit

Permalink
Fix setWorlds type
Browse files Browse the repository at this point in the history
  • Loading branch information
jackTabsCode committed Sep 16, 2024
1 parent b3c7759 commit 6cadf7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Loop.luau
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ end

--[=[
Sets the Worlds to be used by the Loop for deferring commands, and the Debugger for profiling.
@param worlds: {World} | {[string]: World} -- An array or dictionary of Worlds to be used by the Loop. If a dictionary is passed, the keys are used as the names of the Worlds for the Debugger.
]=]
function Loop:setWorlds(worlds: { World.World })
function Loop:setWorlds(worlds: { World.World } | { [string]: World.World })
self._worlds = worlds
end

Expand Down

0 comments on commit 6cadf7c

Please sign in to comment.