refactor(handler): exported the option builder v0.0.1

This commit is contained in:
Jacob Nguyen
2022-02-20 10:48:24 -06:00
parent 408d1e31e3
commit 15ab87aac5
3 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
import * as Preprocessors from './preprocessors/args';
import { Option as OptionBuilder } from './higherOrders';
module.exports = { OptionBuilder, Preprocessors };
export { OptionBuilder, Preprocessors };

View File

@@ -1,5 +1,5 @@
import * as Sern from './handler/sern';
import * as Utils from './handler/utilities/preprocessors/args';
import * as Utils from './handler/utilities/utilsExports';
import * as Types from './types/handler';
module.exports = { Sern, Utils, Types };

View File

@@ -8,7 +8,8 @@ import type {
ApplicationCommandSubGroupData
} from 'discord.js';
type BaseOption = { name : string, description : string, required : false };
// TODO : make required property optional
type BaseOption = { name : string, description : string, required : false };
export interface OptionData {
SUB_COMMAND: ApplicationCommandSubCommandData