@koine/utils 2.0.0-beta.69 → 2.0.0-beta.70
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/arrayOfAll.d.ts +1 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/arrayOfAll.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare let arrayOfAll: <T>() => <U extends T[]>(array: U & ([T] extends [U[number]] ? unknown : "Invalid")) => U & ([T] extends [U[number]] ? unknown : "Invalid");
|
|
2
|
+
export type ArrayOfAll<List extends unknown[], Union> = List[number] extends Union ? Union extends List[number] ? true : "Incomplete" : "Incomplete";
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx";
|
|
|
3
3
|
export { areEqual } from "./areEqual";
|
|
4
4
|
export { arrayFilterFalsy } from "./arrayFilterFalsy";
|
|
5
5
|
export { arrayFindLastIndex } from "./arrayFindLastIndex";
|
|
6
|
-
export { arrayOfAll } from "./arrayOfAll";
|
|
6
|
+
export { arrayOfAll, type ArrayOfAll } from "./arrayOfAll";
|
|
7
7
|
export { arraySum } from "./arraySum";
|
|
8
8
|
export { arrayToLookup } from "./arrayToLookup";
|
|
9
9
|
export { arrayUniqueByProperties } from "./arrayUniqueByProperties";
|
package/package.json
CHANGED