mirror of
https://github.com/sern-handler/handler
synced 2026-06-14 11:52:15 +00:00
refactor(handler): exported the option builder v0.0.1
This commit is contained in:
5
src/handler/utilities/utilsExports.ts
Normal file
5
src/handler/utilities/utilsExports.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as Preprocessors from './preprocessors/args';
|
||||
import { Option as OptionBuilder } from './higherOrders';
|
||||
|
||||
module.exports = { OptionBuilder, Preprocessors };
|
||||
export { OptionBuilder, Preprocessors };
|
||||
@@ -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 };
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user