Function type for masking sensitive data in spans before export.
Object containing the data to be masked
The data that should be masked
The masked data, or a promise resolving to it
const maskFunction: MaskFunction = async ({ data }) => { if (typeof data === 'string') { return data.replace(/password=\w+/g, 'password=***'); } return data;}; Copy
const maskFunction: MaskFunction = async ({ data }) => { if (typeof data === 'string') { return data.replace(/password=\w+/g, 'password=***'); } return data;};
Function type for masking sensitive data in spans before export.