1234567891011121314151617181920212223242526272829 |
- /**
- * sanitizes input string by handling escape characters eg: converts '''' to '\'\'' and trim input if required
- *
- * @param {String} inputString - Input String to sanitize
- * @param {Boolean} [trim] - Indicates whether to trim string or not
- * @returns {String} Sanitized String handling escape characters
- */
- export function sanitize(inputString: string, trim?: boolean | undefined): string;
- /**
- * sanitizes input options
- *
- * @param {Object} options - Options provided by the user
- * @param {Array} optionsArray - options array received from getOptions function
- *
- * @returns {Object} - Sanitized options object
- */
- export function sanitizeOptions(options: any, optionsArray: any[]): any;
- /**
- *
- * @param {Array} array - form data array
- * @param {String} key - key of form data param
- * @param {String} type - type of form data param(file/text)
- * @param {String} val - value/src property of form data param
- * @param {String} disabled - Boolean denoting whether the param is disabled or not
- * @param {String} contentType - content type header of the param
- * Appends a single param to form data array
- */
- export function addFormParam(array: any[], key: string, type: string, val: string, disabled: string, contentType: string): void;
|