function convertContext()

in packages/openfeature-web-provider/src/ConfidenceWebProvider.ts [149:152]


function convertContext({ targetingKey, ...context }: EvaluationContext): Context {
  const targetingContext = typeof targetingKey !== 'undefined' ? { targeting_key: targetingKey } : {};
  return { ...targetingContext, ...convertStruct(context) };
}