UNPKG

right-angled

Version:

Lightweight and easy to use angular data grids. Integrates with your markup and styles rather than generating its own.

34 lines 1.47 kB
/** * Copies values of all properties from passed object to the new object literal. * * If any of the properties of passed object is also a complex object then {@link cloneAsLiteral} will be called recursively. * * Function declarations are ignored. * @param value value to clone. * @returns resulted literal. */ export declare function cloneAsLiteral(value: any): any; /** * Set of key-value pairs which is used by {@link coerceValue} method to coerce specific values. */ export declare const coerceTypes: any; /** * Coerce type of passed value. * * For example if you pass string with value 'null' it returns `null`, if you pass 'true' it returns boolean value `true`, if you pass '1.0' it returns number `1.0` etc. * * If passed value is complex object or array this method will be called for each property or array item. * @param value value to coerce. * @returns resulted value. * @see {@link coerceTypes} */ export declare function coerceValue(value: any): any; /** * Cleaning up passed array by calling `splice` function. * * Next, each element of passed array will be checked for existence of `destroy` method and if it exists it will be called. * @param collection array of elements to destroy. * @param async if `true` then iterating over array and `destroy` methods calling will be executed via setTimeout (,0). */ export declare function destroyAll(collection: any[], async?: boolean): void; //# sourceMappingURL=utilities.d.ts.map