/* * Created by Trevor Sears . * 2:58 PM -- October 21st, 2019. * Project: @command-socket/core */ /** * An interface representing the structure of a command. * * @author Trevor Sears * @version v0.1.0 * @since v0.1.0 */ export interface CommandStructure { readonly parameter: ParameterType; readonly return: ReturnType; } export type CommandStructureParameterType = C extends CommandStructure ? P : never; export type CommandStructureReturnType = C extends CommandStructure ? R : never;