webserver-framework/@types/Flags.ts

11 lines
296 B
TypeScript
Raw Normal View History

2023-05-08 19:47:10 +02:00
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
}