UNPKG

@data-client/endpoint

Version:

Declarative Network Interface Definitions

26 lines 789 B
/** * Helpers to enable Immutable compatibility *without* bringing in * the 'immutable' package as a dependency. */ /** * Check if an object is immutable by checking if it has a key specific * to the immutable library. * * @param {any} object * @return {bool} */ export declare function isImmutable(object: {}): object is { get(k: string): any; [k: string]: any; }; /** * Denormalize an immutable entity. * * @param {Schema} schema * @param {Immutable.Map|Immutable.Record} input * @param {function} unvisit * @param {function} getDenormalizedEntity * @return {Immutable.Map|Immutable.Record} */ export declare function denormalizeImmutable(schema: any, input: any, unvisit: (schema: any, input: any) => any): any; //# sourceMappingURL=ImmutableUtils.d.ts.map