UNPKG

@omniconvert/server-side-testing-sdk

Version:

TypeScript SDK for server-side A/B testing and experimentation

51 lines 1.19 kB
import { ContextParamType } from '../../types'; /** * Interface for context parameters * All context parameters must implement this interface */ export interface ContextParamInterface { /** * Get the parameter name */ getName(): string; /** * Set the parameter name */ setName(name: string): void; /** * Get the parameter type (scalar or array) */ getType(): ContextParamType; /** * Set the parameter type */ setType(type: ContextParamType): void; /** * Get the parameter value */ getValue(): unknown; /** * Set the parameter value */ setValue(value: unknown): void; /** * Get the parameter attributes */ getAttributes(): ContextParamAttribute[]; /** * Add an attribute to the parameter */ addAttribute(attribute: ContextParamAttribute): void; /** * Convert the parameter to an array representation */ toArray(): Record<string, unknown>; } /** * Interface for context parameter attributes */ export interface ContextParamAttribute { name: string; value: unknown; } //# sourceMappingURL=ContextParamInterface.d.ts.map