brigadier-ts icon indicating copy to clipboard operation
brigadier-ts copied to clipboard

Dynamic command exception types lack safety for the number of arguments

Open haykam821 opened this issue 1 year ago • 0 comments

While dynamic command exception types already lack type safety (using Object/any as arguments instead of using type parameters), this library differs from Brigadier by not having multiple classes for the number of arguments needed. As a result, making a mistake in supplying the wrong number of arguments is easy, as there is no guarantee that the error will be caught by the TypeScript compiler.

haykam821 avatar Feb 07 '24 21:02 haykam821