Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
exotic-core / dist / src / coerce / toShape.d.ts
Size: Mime:
/**
 * @NOTE this is `filterObj`
 * @desc dereferences obj, deletes property
 * @param  {string} path
 * @param  {Object} obj
 * @return {Object}
 */
declare const withoutProp: (path: any, obj: any) => any;
declare const thereAndFlatAgain: (data: any) => {};
/**
 * @NOTE @TODO handle mapping of paths IN SCHEMA OR MAP
 *
 * @param {Object} schema type definitions for data
 * @param {Object<string, string>} pathMap paths to remap & lift
 * @return {Object} lifted & merged
 *
 * @see lift
 */
declare function mapDataWith(schema: any, pathMap: any, data: any): void;
/**
 * @param {Object} data object to lift on
 * @param {String|Array<string>} property paths
 * @return {Object} lifted & merged
 */
declare function lift(data: any, property: any): any;
export { lift, mapDataWith, withoutProp, thereAndFlatAgain };