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