tiny-essentials 1.22.12 → 1.22.13

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.
@@ -2577,7 +2577,7 @@ class TinyHtml {
2577
2577
  *
2578
2578
  * @template {TinyHtmlConstructor} T
2579
2579
  * @param {T} el - The elements to add.
2580
- * @returns {TinyHtml<T>} The new length of the internal collection.
2580
+ * @returns {TinyHtml<TinyHtmlT|T>} The new length of the internal collection.
2581
2581
  */
2582
2582
  add(el) {
2583
2583
  return new TinyHtml([...this.#el, ...TinyHtml._selector(el)]);
@@ -3114,9 +3114,9 @@ declare class TinyHtml<TinyHtmlT extends TinyHtmlConstructor> {
3114
3114
  *
3115
3115
  * @template {TinyHtmlConstructor} T
3116
3116
  * @param {T} el - The elements to add.
3117
- * @returns {TinyHtml<T>} The new length of the internal collection.
3117
+ * @returns {TinyHtml<TinyHtmlT|T>} The new length of the internal collection.
3118
3118
  */
3119
- add<T extends TinyHtmlConstructor>(el: T): TinyHtml<T>;
3119
+ add<T extends TinyHtmlConstructor>(el: T): TinyHtml<TinyHtmlT | T>;
3120
3120
  /**
3121
3121
  * Returns the full computed CSS styles for the given element.
3122
3122
  *
@@ -2273,7 +2273,7 @@ class TinyHtml {
2273
2273
  *
2274
2274
  * @template {TinyHtmlConstructor} T
2275
2275
  * @param {T} el - The elements to add.
2276
- * @returns {TinyHtml<T>} The new length of the internal collection.
2276
+ * @returns {TinyHtml<TinyHtmlT|T>} The new length of the internal collection.
2277
2277
  */
2278
2278
  add(el) {
2279
2279
  return new TinyHtml([...this.#el, ...TinyHtml._selector(el)]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-essentials",
3
- "version": "1.22.12",
3
+ "version": "1.22.13",
4
4
  "description": "Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.",
5
5
  "scripts": {
6
6
  "test": "npm run test:mjs && npm run test:cjs && npm run test:js",