I am still new to TS but love it because it is making me code better. My current topic of research is how to organize some types I have.
Background: I am creating a Discord bot; I have several interfaces that define how various components are shaped, like Command, ScheduledEvent, GatewayEvent, etc. These interfaces are then consumed in multiple files; for example, each command is in a file.
So, with that, I am trying to figure out the best way for defining/declaring those interfaces. I have read a bunch, but not seeing much more than just basically opinon...which may be the only answer lol.
Is it acceptable to place these in a types file in a declare global block? Or should I import them in each place consumed? I know d.ts files are usually for JS libraries, but is it acceptable to use in something like this?