Skip to content

Commit abd9695

Browse files
committed
fix: Simplify local transport typing
Make sure transport returned by `Local` conforms to the transport type expected by `Client`.
1 parent 9a2a609 commit abd9695

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/client/transport/local.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ export class LocalTransport extends Transport {
236236

237237
const localMasters = new Map();
238238
export function Local(opts?: Pick<LocalMasterOpts, 'bots'>) {
239-
return (
240-
transportOpts: Pick<LocalMasterOpts, 'game'> &
241-
LocalTransportOpts & { gameKey: Game }
242-
) => {
239+
return (transportOpts: TransportOpts) => {
243240
let master: LocalMaster;
244241

245242
if (localMasters.has(transportOpts.gameKey) && !opts) {

0 commit comments

Comments
 (0)