Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FlagObjectOptions

Options for creating a flag object.

Hierarchy

  • FlagObjectOptions

Index

Properties

allowArrayValues

allowArrayValues: boolean

If true, multiple flags with the same name will be merged into an array flag with all the values. Otherwise, only the first flag with that name will be used.

caseInsensitiveFlags

caseInsensitiveFlags: boolean

Whether flags names & flag object keys are case insensitive.

example

const flagObject = createFlagObject([ { name: 'SampleFlag', value: '1' }, { name: 'sampleflag', value: '2' } ], { allowArrayValues: true, caseInsensitiveFlags: true });

const sampleFlag = flagObject.sampleFlag; // [ '1', '2' ]

Generated using TypeDoc