thelounge/shared
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
..
types fix bad typing 2024-04-21 15:11:51 +02:00
irc.ts Move condensedTypes to shared/ 2023-01-30 09:14:40 +01:00
linkify.ts linkify: simplify noscheme detection logic 2024-01-21 21:18:09 +01:00
tsconfig.json Extract linkify to shared directory 2023-01-30 09:14:40 +01:00