webserver-framework/@types/Flags.ts
Navy.gif 8d64983ffa
flag hierachy
flag tags (env & consumer sets)
2023-05-15 00:54:38 +03:00

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
}