Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@algorithm.ts/types

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algorithm.ts/types - npm Package Compare versions

Comparing version 3.0.0-alpha.8 to 3.0.0

7

lib/types/index.d.ts

@@ -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 };

11

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc