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

TypeScript port of Mojang/brigadier

Results 7 brigadier-ts issues
Sort by recently updated
recently updated
newest added

Messages are restricted to strings, which differs from Brigadier, which allows for a custom `Message` implementation with a `getString` method. Therefore, users of this library cannot reference a custom message...

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...

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @​OlafConijn in...

dependencies

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3. Release notes Sourced from tough-cookie's releases. 4.1.3 Security fix for Prototype Pollution discovery in #282. This is a minor release, although output from the...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies

Currently, the return type of `CommandDispatcher#execute` is a `number`, as the `Command` type requires a `number | void` return type. As a result, commands cannot be executed asynchronously.

enhancement

With the following command tree, only the first branch with `a` and `b` arguments works correctly: ```ts dispatcher.register(literal('foo') .then(argument('a', new FloatArgumentType()) .then(argument('b', new FloatArgumentType()) .executes(ctx => ctx.get('a') + ctx.get('b')))) .then(argument("c",...