Skip to content

Commit 8e90ac0

Browse files
committed
docs: format
1 parent 819e41b commit 8e90ac0

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ It allows you to create things like this:
2424

2525
```tsx
2626
import { InSim } from 'node-insim';
27-
import { InSimFlags, InSimPacketInstance, IS_MST, PacketType } from 'node-insim/packets';
27+
import type { InSimPacketInstance } from 'node-insim/packets';
28+
import { InSimFlags, IS_MST, PacketType } from 'node-insim/packets';
2829
import { StrictMode } from 'react';
2930
import {
3031
Button,
@@ -54,13 +55,17 @@ function App() {
5455
});
5556

5657
// Clickable buttons
57-
const handlePlayerClick = (plid: number) => (_: InSimPacketInstance<PacketType.ISP_BTC>, inSim: InSim) => {
58-
inSim.send(new IS_MST({ Msg: `/echo PLID ${plid}` }));
59-
};
58+
const handlePlayerClick =
59+
(plid: number) =>
60+
(_: InSimPacketInstance<PacketType.ISP_BTC>, inSim: InSim) => {
61+
inSim.send(new IS_MST({ Msg: `/echo PLID ${plid}` }));
62+
};
6063

61-
const handleConnectionClick = (ucid: number) => (_: InSimPacketInstance<PacketType.ISP_BTC>, inSim: InSim) => {
62-
inSim.send(new IS_MST({ Msg: `/echo UCID ${ucid}` }));
63-
};
64+
const handleConnectionClick =
65+
(ucid: number) =>
66+
(_: InSimPacketInstance<PacketType.ISP_BTC>, inSim: InSim) => {
67+
inSim.send(new IS_MST({ Msg: `/echo UCID ${ucid}` }));
68+
};
6469

6570
return (
6671
<>

0 commit comments

Comments
 (0)