@matthiaskrijgsman/mat-ui 0.0.35 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,3 +13,15 @@ export type SelectDivider = {
13
13
  };
14
14
  export type SelectItem<T> = Option<T> | SelectGroupHeader | SelectDivider;
15
15
  export declare const isSelectOption: <T>(item: SelectItem<T>) => item is Option<T>;
16
+ /**
17
+ * Compares two option values for selection/membership purposes.
18
+ *
19
+ * Primitives (string, number, boolean, …) are compared by strict equality, so
20
+ * behaviour is identical to `===` for the common case. Object-valued options
21
+ * fall back to a structural (JSON) comparison, so a value rehydrated from
22
+ * persisted state — a fresh object instance that is structurally equal — still
23
+ * matches its option instead of silently falling back to the placeholder.
24
+ *
25
+ * Note: the structural comparison is order-sensitive on object keys.
26
+ */
27
+ export declare const selectValueEquals: <T>(a: T | null | undefined, b: T | null | undefined) => boolean;