@splitsoftware/splitio-react
Version:
A React library to easily integrate and use Split JS SDK
22 lines (14 loc) • 945 B
text/typescript
// The string below is a marker and will be replaced by the real version number. DO NOT CHANGE
export const VERSION: string = 'react-' + 'REACT_SDK_VERSION_NUMBER';
// Treatments
export const ON: SplitIO.Treatment = 'on';
export const OFF: SplitIO.Treatment = 'off';
export const CONTROL: SplitIO.Treatment = 'control'; // SplitIO default value
export const CONTROL_WITH_CONFIG: SplitIO.TreatmentWithConfig = {
treatment: 'control', // SplitIO default value
config: null,
};
// Warning and error messages
export const WARN_SF_CONFIG_AND_FACTORY: string = '[WARN] Both a config and factory props were provided to SplitFactoryProvider. Config prop will be ignored.';
export const EXCEPTION_NO_SFP: string = 'No SplitContext was set. Please ensure the component is wrapped in a SplitFactoryProvider.';
export const WARN_NAMES_AND_FLAGSETS: string = '[WARN] Both names and flagSets properties were provided. flagSets will be ignored.';