@algorithm.ts/types
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0
@@ -45,3 +45,2 @@ interface ICollection<T> extends Iterable<T> { | ||
type IEquals<T> = (x: T, y: T) => boolean; | ||
type IKeyOf<T, K = number> = (element: T) => K; | ||
/** | ||
@@ -64,6 +63,2 @@ * Make all properties in `T` mutable. | ||
}; | ||
/** | ||
* Get element type of an array | ||
*/ | ||
type ElementOfArray<T extends ReadonlyArray<unknown> | string> = T extends ReadonlyArray<infer ElementType> ? ElementType : T extends string ? string : never; | ||
@@ -79,2 +74,2 @@ interface IOperator<T> { | ||
export { DeepReadonly, ElementOfArray, IAdjacentList, ICollection, ICompare, IDigraph, IDigraphEdge, IEquals, IKeyOf, IOperator, Mutable, PickPartial }; | ||
export { DeepReadonly, IAdjacentList, ICollection, ICompare, IDigraph, IDigraphEdge, IEquals, IOperator, Mutable, PickPartial }; |
{ | ||
"name": "@algorithm.ts/types", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0", | ||
"description": "Common types for the algorithm.ts packages.", | ||
@@ -31,3 +31,3 @@ "author": { | ||
"lib/", | ||
"src/", | ||
"!lib/**/*.map", | ||
"package.json", | ||
@@ -44,6 +44,7 @@ "CHANGELOG.md", | ||
"cross-env": "^7.0.3", | ||
"rimraf": "^4.4.0", | ||
"rollup": "^3.19.1" | ||
"jest": "^29.5.0", | ||
"rimraf": "^4.4.1", | ||
"rollup": "^3.20.2" | ||
}, | ||
"gitHead": "104385f40c0be99b843e3342e85b618761047b69" | ||
"gitHead": "9bb1f3515444890907c8e811b989f17073f39591" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
6240
4
7
70