mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
22 lines
1.0 KiB
TypeScript
22 lines
1.0 KiB
TypeScript
|
/**
|
||
|
* Generated by Orval
|
||
|
* Do not edit manually.
|
||
|
* See `gen:api` script in package.json
|
||
|
*/
|
||
|
import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload } from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayload';
|
||
|
|
||
|
/**
|
||
|
* The feature variant you receive based on the provided context or the _disabled
|
||
|
variant_. If a feature is disabled or doesn't have any
|
||
|
variants, you would get the _disabled variant_.
|
||
|
Otherwise, you'll get one of thefeature's defined variants.
|
||
|
*/
|
||
|
export type AdvancedPlaygroundEnvironmentFeatureSchemaVariant = {
|
||
|
/** The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled` */
|
||
|
name: string;
|
||
|
/** Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false` */
|
||
|
enabled: boolean;
|
||
|
/** An optional payload attached to the variant. */
|
||
|
payload?: AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload;
|
||
|
} | null;
|