es-toolkit 1.45.0-dev.1759 → 1.45.0-dev.1760

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.
@@ -12,6 +12,6 @@
12
12
  * const randomElement = sample(array);
13
13
  * // randomElement will be one of the elements from the array, selected randomly.
14
14
  */
15
- declare function sample<T>(arr: readonly T[]): T | undefined;
15
+ declare function sample<T>(arr: readonly T[]): T;
16
16
 
17
17
  export { sample };
@@ -12,6 +12,6 @@
12
12
  * const randomElement = sample(array);
13
13
  * // randomElement will be one of the elements from the array, selected randomly.
14
14
  */
15
- declare function sample<T>(arr: readonly T[]): T | undefined;
15
+ declare function sample<T>(arr: readonly T[]): T;
16
16
 
17
17
  export { sample };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
- "version": "1.45.0-dev.1759+fb66f02a",
3
+ "version": "1.45.0-dev.1760+e549de2e",
4
4
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
5
5
  "homepage": "https://es-toolkit.dev",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",