@lunaeme/circe-core
Version:
Circe :: Angular Core Services and Tools
44 lines (43 loc) • 1.79 kB
TypeScript
import { CcSingleData, CcStringTransform } from '../_types/data.types';
export declare class ToolService {
months: Array<string>;
constructor();
static getValueFromMultiLevelObject(object: any, key: string, separator?: string): any;
static setValueInMultiLevelObject(object: any, key: string, value: any, separator?: string): any;
static waitFor(milliseconds: number): void;
/**
* repeatedValuesInArray
* @description
* This method returns an array of uniques values if parameter "unique" is true; or returns
* an array of ONLY repeated values (unique values are discarded) if unique is false.
* Default value por parameter unique is true.
*/
static repeatedValuesInArray(values: Array<CcSingleData>, unique?: boolean): Array<CcSingleData>;
static checkLastChar(text: string, char: string): string;
static hexToRgb(hex: string): Array<number>;
static rgbToHex(r: number, g: number, b: number): string;
/**
* generateUuid
* @description
* Generates a new uuid using uuid dependency.
*/
static generateUuid(): string;
/**
* checkArray
* @description
* Returns true if parameter given "array" is an array, otherwise returns false;
* If optional parameter "filled" is given, then this method checks the array is not empty.
* Default value for "filled" is true.
*/
static checkArray(array: Array<any>, filled?: boolean): boolean;
/**
* @deprecated
*/
static getValueFromDotedKey(object: any, dotedKey: string, separator?: string): any;
/**
* @deprecated
*/
static formatString(text: string): string;
identifier(index: number, item: any): any;
stringTransform(text: string, transformType?: CcStringTransform): string;
}