@oscarpalmer/atoms 0.186.1 → 0.186.2
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/get.d.mts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +1 -1
- package/src/array/get.ts +2 -2
package/dist/array/get.d.mts
CHANGED
|
@@ -35,7 +35,7 @@ declare function getArray<Value extends PlainObject>(value: Value): Value[keyof
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```typescript
|
|
38
|
-
* getArray(123); // => [123]
|
|
38
|
+
* getArray([123]); // => [123]
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
declare function getArray<Item>(value: Item[]): Item[];
|
|
@@ -50,6 +50,6 @@ declare function getArray<Item>(value: Item[]): Item[];
|
|
|
50
50
|
* getArray(123); // => [123]
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
declare function getArray(value:
|
|
53
|
+
declare function getArray<Value>(value: Value): Value[];
|
|
54
54
|
//#endregion
|
|
55
55
|
export { getArray };
|
package/dist/index.d.mts
CHANGED
|
@@ -1305,7 +1305,7 @@ declare function getArray<Value extends PlainObject>(value: Value): Value[keyof
|
|
|
1305
1305
|
*
|
|
1306
1306
|
* @example
|
|
1307
1307
|
* ```typescript
|
|
1308
|
-
* getArray(123); // => [123]
|
|
1308
|
+
* getArray([123]); // => [123]
|
|
1309
1309
|
* ```
|
|
1310
1310
|
*/
|
|
1311
1311
|
declare function getArray<Item>(value: Item[]): Item[];
|
|
@@ -1320,7 +1320,7 @@ declare function getArray<Item>(value: Item[]): Item[];
|
|
|
1320
1320
|
* getArray(123); // => [123]
|
|
1321
1321
|
* ```
|
|
1322
1322
|
*/
|
|
1323
|
-
declare function getArray(value:
|
|
1323
|
+
declare function getArray<Value>(value: Value): Value[];
|
|
1324
1324
|
//#endregion
|
|
1325
1325
|
//#region src/array/insert.d.ts
|
|
1326
1326
|
/**
|
package/package.json
CHANGED
package/src/array/get.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function getArray<Value extends PlainObject>(value: Value): Value[keyof V
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```typescript
|
|
45
|
-
* getArray(123); // => [123]
|
|
45
|
+
* getArray([123]); // => [123]
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
export function getArray<Item>(value: Item[]): Item[];
|
|
@@ -58,7 +58,7 @@ export function getArray<Item>(value: Item[]): Item[];
|
|
|
58
58
|
* getArray(123); // => [123]
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
|
-
export function getArray(value:
|
|
61
|
+
export function getArray<Value>(value: Value): Value[];
|
|
62
62
|
|
|
63
63
|
export function getArray(value: unknown, indiced?: unknown): unknown[] {
|
|
64
64
|
if (Array.isArray(value)) {
|