11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
export type FlagType = string | number | boolean | number[] | null
|
|
export type FlagEnv = 'test' | 'prod'
|
|
export type FlagConsumer = 'client' | 'server' | 'api'
|
|
|
|
export type FlagData<T = FlagType> = {
|
|
_id?: string,
|
|
name: string,
|
|
env: FlagEnv,
|
|
consumer: FlagConsumer,
|
|
value: T
|
|
} |