/* * Created by Trevor Sears . * 2:56 PM -- October 21st, 2019. * Project: @command-socket/core */ import { CommandStructure } from "./command-structure"; import { KnownKeys } from "../../util/known-keys"; import { IfAny } from "../../util/any-types"; /** * An interface representing a set of commands. * * @author Trevor Sears * @version v0.1.0 * @since v0.1.0 */ export interface CommandSetStructure { /** * Each key must be a string, representing the command name, with each associated value being a * {@link CommandStructure}. */ [commandName: string]: CommandStructure; } export type CommandNameInCommandSet = IfAny>; export type CommandStructureInCommandSet> = IfAny, CS[CN]>;