#you should not be creating event

1 messages · Page 1 of 1 (latest)

granite jasper
#

The reason I did that is because in TS it allows the types to be inferred.

When you dynamically register all events you run into some really complicated typing and in the separate files it's hard to restore intellisense on the event params, so creating a new event takes more research into what the params are

compact bear
#

it's not even that complicated

#

run(arg1: type, arg2: type2)
or just cast the entire thing to a pre-defined type