TeleportService:TeleportAsync has a wrong parameter type which produces a type warning with strict mode

TeleportService:TeleportAsync method has a few types: place Id, typed as number; players, typed as {Instance}; and teleportOptions, typed as Instance. When using --!strict, or having it enabled in workspace by default, and attempted to pass in an array of players to teleport, which is typed as { Player }, it causes a type warning which says, “Expected this to be exactly ‘Instance’, but got ‘Player’.”

Expected behavior

The method parameter for players should be typed as { Player } instead of { Instance }, and the warning should not appear

5 Likes

Oh, here is some images of the issue itself:
Just incase if this is needed too


2 Likes

Hi metaatabled,

Thanks for the feedback. I’ve typed players as { Player } now instead of { Instance }. You should probably see this changed on your end in the next update sometime next week.