So basically, I was looking around discordjs's typings folder and found this:
export interface ClientEvents {
...
messageCreate: [message: Message] <- what?
messageDelete: [message: Message | PartialMessage]
}
What exactly are they trying to do here? I've heard of index signatures, like in this example here:
interface Foo {
[bar: string]: any
}
But I've never seen any syntax that resembles this in both TS and JS.