Construct a type with the properties of T except for those in type K.

interface ApplicationCommandChoicesData<
    Type extends string
    | number = string | number,
> {
    autocomplete?: false;
    choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
    description: string;
    descriptionLocalizations?: Partial<Record<Locale, null | string>>;
    name: string;
    nameLocalizations?: Partial<Record<Locale, null | string>>;
    required?: boolean;
    type: CommandOptionChoiceResolvableType;
}

Type Parameters

  • Type extends string | number = string | number

Hierarchy (View Summary)

Properties

autocomplete?: false
description: string
descriptionLocalizations?: Partial<Record<Locale, null | string>>
name: string
nameLocalizations?: Partial<Record<Locale, null | string>>
required?: boolean