2023-05-08 19:47:10 +02:00
|
|
|
export type FlagType = string | number | boolean | number[] | null
|
2023-05-14 23:54:38 +02:00
|
|
|
export type FlagEnv = string; // 'test' | 'prod'
|
|
|
|
export type FlagConsumer = string; // 'client' | 'server' | 'api'
|
2023-05-08 19:47:10 +02:00
|
|
|
|
|
|
|
export type FlagData<T = FlagType> = {
|
|
|
|
_id?: string,
|
2023-05-09 20:59:05 +02:00
|
|
|
id?: string,
|
2023-05-08 19:47:10 +02:00
|
|
|
name: string,
|
|
|
|
env: FlagEnv,
|
|
|
|
consumer: FlagConsumer,
|
2023-05-14 23:54:38 +02:00
|
|
|
value: T,
|
|
|
|
hierarchy: string
|
2023-05-08 19:47:10 +02:00
|
|
|
}
|