@optimizely/optimizely-sdk
Version:
JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts
17 lines (16 loc) • 611 B
TypeScript
import { Platform } from '../../platform_support';
/**
* Validates the datafile
* @param {Object|string} datafile
* @return {Object} The datafile object if the datafile is valid
* @throws If the datafile is not valid for any of the following reasons:
- The datafile string is undefined
- The datafile string cannot be parsed as a JSON object
- The datafile version is not supported
*/
export declare const validateDatafile: (datafile: unknown) => any;
declare const _default: {
validateDatafile: (datafile: unknown) => any;
};
export default _default;
export declare const __platforms: Platform[];