RequireAtLeastOne<T> Type alias
Defines a type wherein at least one of the properties of T is required to exist. In the following example, paying for a coffee requires a customer to have either a credit card, some cash, or both in their wallet.
interface Wallet {
cash?: number;
card?: CreditCard;
}
function payForCoffee(wallet: RequireAtLeastOne<Wallet>) { ... }
Source: @azure/keyvault-certificates.
RequireAtLeastOne = undefined
Defined in
- core/bentley/src/UtilityTypes.ts Line 133
Last Updated: 30 November, 2023