Skip to content

Commit

Permalink
chore: process vladdy's review
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Feb 12, 2021
1 parent 9080944 commit cea08f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/subcommands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import type { Args } from '@sapphire/framework';
import type { Message } from 'discord.js';

// Using ApplyOptions decorator makes it easy to configure
@ApplyOptions<SkyraCommand.Options>({
@ApplyOptions<SubCommandPluginCommand.Options>({
subCommands: ['add', 'remove', 'list', 'reset', { input: 'show', default: true }]
})
// Extend `SubCommandPluginCommand` instead of `Command`
Expand Down
8 changes: 8 additions & 0 deletions packages/subcommands/src/lib/SubCommandPluginCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ export interface SubCommandPluginCommandOptions<ArgType extends Args = Args, Com
extends CommandOptions {
subCommands: SubCommandManager.RawEntries<ArgType, CommandType>;
}

// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace SubCommandPluginCommand {
/**
* The SubCommandPluginCommand Options
*/
export type Options = SubCommandPluginCommandOptions;
}

0 comments on commit cea08f1

Please sign in to comment.