mirror of
https://github.com/ChipmunkMC/node-brigadier-commands.git
synced 2024-11-14 19:14:55 -05:00
Change the import scheme
This commit is contained in:
parent
c89271d021
commit
999b6812a7
3 changed files with 21 additions and 8 deletions
|
@ -13,5 +13,15 @@ module.exports = {
|
|||
FloatArgumentType,
|
||||
IntegerArgumentType,
|
||||
LongArgumentType,
|
||||
StringArgumentType
|
||||
StringArgumentType,
|
||||
|
||||
// Static methods (for convenience)
|
||||
bool: BoolArgumentType.bool,
|
||||
double: DoubleArgumentType.double,
|
||||
integer: IntegerArgumentType.integer,
|
||||
float: FloatArgumentType.float,
|
||||
long: LongArgumentType.long,
|
||||
word: StringArgumentType.word,
|
||||
string: StringArgumentType.string,
|
||||
greedyString: StringArgumentType.greedyString
|
||||
}
|
||||
|
|
|
@ -5,5 +5,8 @@ const RequiredArgumentBuilder = require('./RequiredArgumentBuilder.js')
|
|||
module.exports = {
|
||||
ArgumentBuilder,
|
||||
LiteralArgumentBuilder,
|
||||
RequiredArgumentBuilder
|
||||
RequiredArgumentBuilder,
|
||||
|
||||
literal: LiteralArgumentBuilder.literal,
|
||||
argument: RequiredArgumentBuilder.argument
|
||||
}
|
||||
|
|
12
lib/index.js
12
lib/index.js
|
@ -10,12 +10,12 @@ const LiteralMessage = require('./LiteralMessage.js')
|
|||
const ParseResults = require('./ParseResults.js')
|
||||
|
||||
module.exports = {
|
||||
arguments: _arguments,
|
||||
builder,
|
||||
context,
|
||||
exceptions,
|
||||
suggestion,
|
||||
tree,
|
||||
..._arguments,
|
||||
...builder,
|
||||
...context,
|
||||
...exceptions,
|
||||
...suggestion,
|
||||
...tree,
|
||||
CommandDispatcher,
|
||||
LiteralMessage,
|
||||
ParseResults,
|
||||
|
|
Loading…
Reference in a new issue