The options used to initialize an observable map.

interface IOptions<T> {
    itemCmp?: ((first, second) => boolean);
    values?: {
        [key: string]: T;
    };
}

Type Parameters

  • T

Properties

Properties

itemCmp?: ((first, second) => boolean)

The item comparison function for change detection on set.

If not given, strict === equality will be used.

Type declaration

    • (first, second): boolean
    • Parameters

      • first: T
      • second: T

      Returns boolean

values?: {
    [key: string]: T;
}

An optional initial set of values.

Type declaration

  • [key: string]: T