The options used to initialize an observable map.

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

Type Parameters

  • T

Properties

Properties

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

The item comparison function for change detection on set.

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

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

An optional initial set of values.