UNPKG

@optimizely/optimizely-sdk

Version:

JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts

17 lines (16 loc) 611 B
import { Platform } from '../../platform_support'; /** * Validates user's provided attributes * @param {unknown} attributes * @return {boolean} true if the attributes are valid * @throws If the attributes are not valid */ export declare function validate(attributes: unknown): boolean; /** * Validates user's provided attribute * @param {unknown} attributeKey * @param {unknown} attributeValue * @return {boolean} true if the attribute is valid */ export declare function isAttributeValid(attributeKey: unknown, attributeValue: unknown): boolean; export declare const __platforms: Platform[];