vwo-fme-node-sdk
Version:
VWO Node/JavaScript SDK for Feature Management and Experimentation
15 lines (14 loc) • 796 B
TypeScript
/**
* Constructs a message by replacing placeholders in a template with corresponding values from a data object.
*
* @param {string} template - The message template containing placeholders in the format `{key}`.
* @param {Record<string, any>} data - An object containing keys and values used to replace the placeholders in the template.
* @returns {string} The constructed message with all placeholders replaced by their corresponding values from the data object.
*/
export declare function buildMessage(template: string, data?: Record<string, any>): string;
/**
* Sends a log message to VWO.
* @param {string} message - The message to log.
* @param {string} messageType - The type of message to log.
*/
export declare function sendLogToVWO(message: string, messageType: string): void;