import type { APIBaseComponent, ComponentType } from 'discord-api-types/v10'; export abstract class BaseComponentBuilder< TYPE extends Partial> = APIBaseComponent, > { constructor(public data: Partial) {} toJSON(): TYPE { return { ...this.data } as TYPE; } } export type OptionValuesLength = { max: number; min: number };