@thi.ng/associative
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -32,3 +32,3 @@ import { Fn3, Pair } from "@thi.ng/api"; | ||
*/ | ||
get(x: T, notFound?: any): any; | ||
get(x: T, notFound?: T): T | undefined; | ||
delete(x: T): boolean; | ||
@@ -39,5 +39,5 @@ disj(xs: Iterable<T>): this; | ||
entries(): IterableIterator<Pair<T, T>>; | ||
keys(): IterableIterator<any>; | ||
values(): IterableIterator<any>; | ||
keys(): IterableIterator<T>; | ||
values(): IterableIterator<T>; | ||
opts(): EquivSetOpts<T>; | ||
} |
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@2.0.0...@thi.ng/associative@2.0.1) (2019-04-02) | ||
### Bug Fixes | ||
* **associative:** add missing return type decls ([1913bb4](https://github.com/thi-ng/umbrella/commit/1913bb4)) | ||
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@1.0.12...@thi.ng/associative@2.0.0) (2019-03-28) | ||
@@ -8,0 +19,0 @@ |
@@ -23,3 +23,3 @@ import { Fn3, ICopy, IEmpty, IEquiv, IObjectOf, Pair } from "@thi.ng/api"; | ||
constructor(pairs?: Iterable<Pair<K, V>>, opts?: Partial<EquivMapOpts<K>>); | ||
[Symbol.iterator](): IterableIterator<[any, any]>; | ||
[Symbol.iterator](): IterableIterator<Pair<K, V>>; | ||
readonly [Symbol.species]: typeof EquivMap; | ||
@@ -35,10 +35,10 @@ readonly [Symbol.toStringTag]: string; | ||
forEach(fn: Fn3<V, Readonly<K>, Map<K, V>, void>, thisArg?: any): void; | ||
get(key: K, notFound?: any): any; | ||
get(key: K, notFound?: V): V | undefined; | ||
has(key: K): boolean; | ||
set(key: K, value: V): this; | ||
into(pairs: Iterable<Pair<K, V>>): this; | ||
entries(): IterableIterator<[any, any]>; | ||
keys(): IterableIterator<any>; | ||
values(): IterableIterator<any>; | ||
entries(): IterableIterator<Pair<K, V>>; | ||
keys(): IterableIterator<K>; | ||
values(): IterableIterator<V>; | ||
opts(): EquivMapOpts<K>; | ||
} |
@@ -14,3 +14,3 @@ import { Fn3, Pair } from "@thi.ng/api"; | ||
constructor(vals?: Iterable<T>, opts?: Partial<EquivSetOpts<T>>); | ||
[Symbol.iterator](): IterableIterator<any>; | ||
[Symbol.iterator](): IterableIterator<T>; | ||
readonly [Symbol.species]: typeof LLSet; | ||
@@ -33,3 +33,3 @@ readonly [Symbol.toStringTag]: string; | ||
*/ | ||
get(x: T, notFound?: any): any; | ||
get(x: T, notFound?: T): T | undefined; | ||
delete(x: T): boolean; | ||
@@ -40,5 +40,5 @@ disj(xs: Iterable<T>): this; | ||
entries(): IterableIterator<Pair<T, T>>; | ||
keys(): IterableIterator<any>; | ||
values(): IterableIterator<any>; | ||
keys(): IterableIterator<T>; | ||
values(): IterableIterator<T>; | ||
opts(): EquivSetOpts<T>; | ||
} |
{ | ||
"name": "@thi.ng/associative", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Alternative Set & Map data type implementations with customizable equality semantics & supporting operations", | ||
@@ -62,3 +62,3 @@ "module": "./index.js", | ||
"sideEffects": false, | ||
"gitHead": "1936d357f46f46d0435e3c7597b845898a91b80d" | ||
"gitHead": "f25da627f84fe9a02a289f46bd608dd3787500fd" | ||
} |
@@ -41,3 +41,3 @@ import { Fn3, IObjectOf, Pair } from "@thi.ng/api"; | ||
first(): Pair<K, V>; | ||
get(k: K, notFound?: V): any; | ||
get(k: K, notFound?: V): V | undefined; | ||
has(key: K): boolean; | ||
@@ -44,0 +44,0 @@ set(k: K, v: V): this; |
@@ -49,4 +49,4 @@ import { Fn3, ICompare, Pair } from "@thi.ng/api"; | ||
has(value: T): boolean; | ||
get(value: T, notFound?: any): any; | ||
get(value: T, notFound?: T): T | undefined; | ||
opts(): SortedSetOpts<T>; | ||
} |
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
209278