UNPKG

@microfocus/alm-octane-js-rest-sdk

Version:
40 lines 1.54 kB
/** * Shallow copy of properties from the `src` object to the `dest` object. If the * `noOverwrite` argument is set to to `true`, the value of a property in `src` * will not be overwritten if it already exists. * * @param {Object} dest - destination object * @param {Object} src - source object * @param {Boolean} noOverwrite - set to `true` to overwrite values in `src` **/ export declare const extend: (dest: { [x: string]: any; }, src: { [x: string]: any; }, noOverwrite: boolean) => { [x: string]: any; }; /** * Transform a string that contains spaces, underscore, or dashes to CamelCase. * If 'lower' is set to 'true', the string will be transformed to camelCase. * * @param {String} str - string to transform * @param {Boolean} [lower] - set to 'true' to transform to camelCase */ export declare const toCamelCase: (str: string, lower?: boolean) => string; /** * Transform a string that contains underscore to words. * If 'plural' is set to 'true', the string will be transformed to the plural words. * * @param {String} str - string to transform * @param {Boolean} [plural] - set to 'true' to transform to the plural words */ export declare const toDisplayName: (str: string, plural?: boolean) => string; /** * Remove whitespace from both sides of a string. * If 'str' is not a string, return it directly. * * @param {String} str - string to trim */ export declare const trim: (str: string | number | null | undefined) => string | number | null | undefined; //# sourceMappingURL=utils.d.ts.map