thelounge/shared/types
Reto Brunner e9ef59b641 fix bad typing
There were quite some errors, where the type was passed the wrong way
```
// This is invalid
"change-password": ({ old_password: string, new_password: string, verify_password: string})

// What was actually meant
"change-password": (data: { old_password: string, new_password: string, verify_password: string})
```

The whole callback function is also very verbose as is, with fluff we don't need.
It's always a function that returns void, so there's no real information to be gained
by spelling it out time and time again.

Let's use a helper type that just accepts the payload.
That should make the above error impossible to do.
2024-04-21 15:11:51 +02:00
..
chan.ts sharedchans does not have users 2024-04-21 15:11:51 +02:00
changelog.ts changelog data type 2024-04-21 15:11:51 +02:00
config.ts configuration 2024-04-21 15:11:51 +02:00
mention.ts mention 2024-04-21 15:10:45 +02:00
msg.ts fix msg event 2024-04-21 15:11:51 +02:00
network.ts sharedchans does not have users 2024-04-21 15:11:51 +02:00
socket-events.d.ts fix bad typing 2024-04-21 15:11:51 +02:00
storage.ts searchresponse 2024-04-21 15:11:51 +02:00
user.ts shared: extract chan + user 2024-04-21 15:10:45 +02:00