webserver-framework/@types/Flags.ts
Navy.gif 183762c885
flags endpoint
allow versioned endpoints to be default (no /vX path element required)
misc changes
2023-05-09 21:59:05 +03:00

12 lines
313 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,
id?: string,
name: string,
env: FlagEnv,
consumer: FlagConsumer,
value: T
}