mtrl-addons 0.2.7 → 0.2.9

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.
@@ -342,6 +342,13 @@ export interface ListAPI<T extends ListItem = ListItem> {
342
342
  clear(): void;
343
343
  /** Add items */
344
344
  addItems(items: T[], position?: "start" | "end"): void;
345
+ /**
346
+ * Add a single item to the collection
347
+ * Convenience method that wraps addItems for single item use case
348
+ * @param item - Item to add
349
+ * @param position - Where to add item: "start" (default) or "end"
350
+ */
351
+ addItem(item: T, position?: "start" | "end"): void;
345
352
  /** Remove items by indices */
346
353
  removeItems(indices: number[]): void;
347
354
  /**