File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ It allows you to create things like this:
2424
2525``` tsx
2626import { 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' ;
2829import { StrictMode } from ' react' ;
2930import {
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 <>
You can’t perform that action at this time.
0 commit comments