webserver-framework/@types/Flags.ts

13 lines
358 B
TypeScript
Raw Permalink Normal View History

2023-05-08 19:47:10 +02:00
export type FlagType = string | number | boolean | number[] | null
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,
id?: string,
2023-05-08 19:47:10 +02:00
name: string,
env: FlagEnv,
consumer: FlagConsumer,
value: T,
hierarchy: string
2023-05-08 19:47:10 +02:00
}