mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 13:18:24 +00:00
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. |
||
---|---|---|
.. | ||
chan.ts | ||
changelog.ts | ||
config.ts | ||
mention.ts | ||
msg.ts | ||
network.ts | ||
socket-events.d.ts | ||
storage.ts | ||
user.ts |