Skip to content

Commit

Permalink
Fixed compile error, added deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Jul 11, 2017
1 parent ad6f50a commit a6b24c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/autorun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ export interface IReactionOptions {
context?: any;
fireImmediately?: boolean;
delay?: number;
compareStructural?: boolean;
compareStructural?: boolean; // TODO: remove in 4.0 in favor of equals
/** alias for compareStructural */
struct?: boolean;
struct?: boolean; // TODO: remove in 4.0 in favor of equals
equals?: IEqualsComparer<any>;
name?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions src/api/computed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {ComputedValue, IComputedValue} from "../core/computedvalue";
import {getMessage} from "../utils/messages";

export interface IComputedValueOptions<T> {
compareStructural?: boolean;
struct?: boolean;
compareStructural?: boolean; // TODO: remove in 4.0 in favor of equals
struct?: boolean; // TODO: remove in 4.0 in favor of equals
equals?: IEqualsComparer<T>;
name?: string;
setter?: (value: T) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/core/computedvalue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {IObservable, reportObserved, propagateMaybeChanged, propagateChangeConfi
import {IDerivation, IDerivationState, trackDerivedFunction, clearObserving, untrackedStart, untrackedEnd, shouldCompute, CaughtException, isCaughtException} from "./derivation";
import {globalState} from "./globalstate";
import {createAction} from "./action";
import {createInstanceofPredicate, getNextId, valueDidChange, invariant, Lambda, unique, joinStrings, primitiveSymbol, toPrimitive} from "../utils/utils";
import {createInstanceofPredicate, getNextId, invariant, Lambda, unique, joinStrings, primitiveSymbol, toPrimitive} from "../utils/utils";
import {isSpyEnabled, spyReport} from "./spy";
import {autorun} from "../api/autorun";
import {IEqualsComparer} from "../types/comparer";
Expand Down

0 comments on commit a6b24c1

Please sign in to comment.