21 lines
1.2 KiB
TypeScript
21 lines
1.2 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { LegacyStaticWeightsExperimentationConfig } from "./LegacyStaticWeightsExperimentationConfig";
|
|
import type { LegacyUniformExperimentationConfig } from "./LegacyUniformExperimentationConfig";
|
|
import type { StaticExperimentationConfig } from "./StaticExperimentationConfig";
|
|
import type { UninitializedAdaptiveExperimentationConfig } from "./UninitializedAdaptiveExperimentationConfig";
|
|
import type { UninitializedTrackAndStopExperimentationConfig } from "./UninitializedTrackAndStopExperimentationConfig";
|
|
|
|
/**
|
|
* Uninitialized experimentation config — 5 variants for backward compatibility.
|
|
* The 3 legacy variants (`Uniform`, `StaticWeights`, `TrackAndStop`) are converted
|
|
* to the 2 new variants (`Static`, `Adaptive`) during `load()`.
|
|
*/
|
|
export type UninitializedExperimentationConfig =
|
|
| ({ type: "static" } & StaticExperimentationConfig)
|
|
| ({ type: "adaptive" } & UninitializedAdaptiveExperimentationConfig)
|
|
| ({ type: "static_weights" } & LegacyStaticWeightsExperimentationConfig)
|
|
| ({ type: "uniform" } & LegacyUniformExperimentationConfig)
|
|
| ({
|
|
type: "track_and_stop";
|
|
} & UninitializedTrackAndStopExperimentationConfig);
|