Project

General

Profile

1
export declare function devModeEqual(a: any, b: any): boolean;
2
/**
3
 * Indicates that the result of a {@link Pipe} transformation has changed even though the
4
 * reference
5
 * has not changed.
6
 *
7
 * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.
8
 *
9
 * Example:
10
 *
11
 * ```
12
 * if (this._latestValue === this._latestReturnedValue) {
13
 *    return this._latestReturnedValue;
14
 *  } else {
15
 *    this._latestReturnedValue = this._latestValue;
16
 *    return WrappedValue.wrap(this._latestValue); // this will force update
17
 *  }
18
 * ```
19
 * @stable
20
 */
21
export declare class WrappedValue {
22
    wrapped: any;
23
    constructor(wrapped: any);
24
    static wrap(value: any): WrappedValue;
25
}
26
/**
27
 * Helper class for unwrapping WrappedValue s
28
 */
29
export declare class ValueUnwrapper {
30
    hasWrappedValue: boolean;
31
    unwrap(value: any): any;
32
    reset(): void;
33
}
34
/**
35
 * Represents a basic change from a previous to a new value.
36
 * @stable
37
 */
38
export declare class SimpleChange {
39
    previousValue: any;
40
    currentValue: any;
41
    firstChange: boolean;
42
    constructor(previousValue: any, currentValue: any, firstChange: boolean);
43
    /**
44
     * Check whether the new value is the first value assigned.
45
     */
46
    isFirstChange(): boolean;
47
}
48
export declare function isListLikeIterable(obj: any): boolean;
49
export declare function areIterablesEqual(a: any, b: any, comparator: (a: any, b: any) => boolean): boolean;
50
export declare function iterateListLike(obj: any, fn: (p: any) => any): void;
51
export declare function isJsObject(o: any): boolean;
(2-2/5)