misode / brigadier-ts

TypeScript port of Mojang/brigadier
MIT License
18 stars 5 forks source link

Readme Example 2 Compile Error. #2

Closed ryantheleach closed 4 years ago

ryantheleach commented 4 years ago

Example 2 in the readme has you run

.then(literal("enumerate")
        .then(argument("nums", integer())

Assumed that integer() should probably be new IntegerArgumentType() , or a helper function/definition be defined somewhere.