brigadier-ts
brigadier-ts copied to clipboard
Dynamic command exception types lack safety for the number of arguments
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.