mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
e9ef59b641
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. |
||
---|---|---|
.. | ||
types | ||
irc.ts | ||
linkify.ts | ||
tsconfig.json |