mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
* Revert "Revert "Rolling TexLive builds experiment"" * adding rolling image to allowed ones in staging (#28588) GitOrigin-RevId: f377cacd6e4811a4bd9116c793ecbb29a7b72c33
11 lines
412 B
TypeScript
11 lines
412 B
TypeScript
import getMeta from './meta'
|
|
|
|
// Should be `never` when no experiments are active. Otherwise it should be a
|
|
// union of active experiment names e.g. `'experiment1' | 'experiment2'`
|
|
export type ActiveExperiment = 'monthly-texlive'
|
|
|
|
export const isInExperiment = (experiment: ActiveExperiment): boolean => {
|
|
const experiments = getMeta('ol-labsExperiments')
|
|
return Boolean(experiments?.includes(experiment))
|
|
}
|