es-toolkit 1.15.1-dev.434 → 1.15.1-dev.436

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.
@@ -7,7 +7,7 @@
7
7
  * @template T - The type of elements in the array.
8
8
  * @template U - The type of the value to search for.
9
9
  * @param {T[] | null | undefined} array - The array to search.
10
- * @param {T | U} searchElement - The value to search for.
10
+ * @param {T} searchElement - The value to search for.
11
11
  * @param {number} [fromIndex] - The index to start the search at.
12
12
  * @returns {number} The index (zero-based) of the first occurrence of the value in the array, or `-1` if the value is not found.
13
13
  *
@@ -16,6 +16,6 @@
16
16
  * indexOf(array, 3); // => 2
17
17
  * indexOf(array, NaN); // => 3
18
18
  */
19
- declare function indexOf<T, U>(array: T[] | null | undefined, searchElement: T | U, fromIndex?: number): number;
19
+ declare function indexOf<T>(array: T[] | null | undefined, searchElement: T, fromIndex?: number): number;
20
20
 
21
21
  export { indexOf };
@@ -7,7 +7,7 @@
7
7
  * @template T - The type of elements in the array.
8
8
  * @template U - The type of the value to search for.
9
9
  * @param {T[] | null | undefined} array - The array to search.
10
- * @param {T | U} searchElement - The value to search for.
10
+ * @param {T} searchElement - The value to search for.
11
11
  * @param {number} [fromIndex] - The index to start the search at.
12
12
  * @returns {number} The index (zero-based) of the first occurrence of the value in the array, or `-1` if the value is not found.
13
13
  *
@@ -16,6 +16,6 @@
16
16
  * indexOf(array, 3); // => 2
17
17
  * indexOf(array, NaN); // => 3
18
18
  */
19
- declare function indexOf<T, U>(array: T[] | null | undefined, searchElement: T | U, fromIndex?: number): number;
19
+ declare function indexOf<T>(array: T[] | null | undefined, searchElement: T, fromIndex?: number): number;
20
20
 
21
21
  export { indexOf };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.15.1-dev.434+f55662d9",
4
+ "version": "1.15.1-dev.436+418183b0",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {