es-toolkit 1.44.0-dev.1746 → 1.44.0-dev.1750
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.
- package/dist/array/sample.d.mts +1 -1
- package/dist/array/sample.d.ts +1 -1
- package/package.json +41 -1
package/dist/array/sample.d.mts
CHANGED
|
@@ -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;
|
|
15
|
+
declare function sample<T>(arr: readonly T[]): T | undefined;
|
|
16
16
|
|
|
17
17
|
export { sample };
|
package/dist/array/sample.d.ts
CHANGED
|
@@ -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;
|
|
15
|
+
declare function sample<T>(arr: readonly T[]): T | undefined;
|
|
16
16
|
|
|
17
17
|
export { sample };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.44.0-dev.
|
|
3
|
+
"version": "1.44.0-dev.1750+066b0dd0",
|
|
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",
|
|
@@ -68,6 +68,16 @@
|
|
|
68
68
|
"default": "./dist/function/index.js"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
"./map": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/map/index.d.mts",
|
|
74
|
+
"default": "./dist/map/index.mjs"
|
|
75
|
+
},
|
|
76
|
+
"require": {
|
|
77
|
+
"types": "./dist/map/index.d.ts",
|
|
78
|
+
"default": "./dist/map/index.js"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
71
81
|
"./math": {
|
|
72
82
|
"import": {
|
|
73
83
|
"types": "./dist/math/index.d.mts",
|
|
@@ -108,6 +118,16 @@
|
|
|
108
118
|
"default": "./dist/promise/index.js"
|
|
109
119
|
}
|
|
110
120
|
},
|
|
121
|
+
"./set": {
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/set/index.d.mts",
|
|
124
|
+
"default": "./dist/set/index.mjs"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/set/index.d.ts",
|
|
128
|
+
"default": "./dist/set/index.js"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
111
131
|
"./string": {
|
|
112
132
|
"import": {
|
|
113
133
|
"types": "./dist/string/index.d.mts",
|
|
@@ -265,6 +285,16 @@
|
|
|
265
285
|
"default": "./dist/function/index.js"
|
|
266
286
|
}
|
|
267
287
|
},
|
|
288
|
+
"./map": {
|
|
289
|
+
"import": {
|
|
290
|
+
"types": "./dist/map/index.d.mts",
|
|
291
|
+
"default": "./dist/map/index.mjs"
|
|
292
|
+
},
|
|
293
|
+
"require": {
|
|
294
|
+
"types": "./dist/map/index.d.ts",
|
|
295
|
+
"default": "./dist/map/index.js"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
268
298
|
"./math": {
|
|
269
299
|
"import": {
|
|
270
300
|
"types": "./dist/math/index.d.mts",
|
|
@@ -305,6 +335,16 @@
|
|
|
305
335
|
"default": "./dist/promise/index.js"
|
|
306
336
|
}
|
|
307
337
|
},
|
|
338
|
+
"./set": {
|
|
339
|
+
"import": {
|
|
340
|
+
"types": "./dist/set/index.d.mts",
|
|
341
|
+
"default": "./dist/set/index.mjs"
|
|
342
|
+
},
|
|
343
|
+
"require": {
|
|
344
|
+
"types": "./dist/set/index.d.ts",
|
|
345
|
+
"default": "./dist/set/index.js"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
308
348
|
"./string": {
|
|
309
349
|
"import": {
|
|
310
350
|
"types": "./dist/string/index.d.mts",
|