obliterator
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "obliterator", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Higher order iterator library for JavaScript/TypeScript.", | ||
@@ -33,7 +33,7 @@ "main": "index.js", | ||
"@yomguithereal/prettier-config": "^1.2.0", | ||
"eslint": "^8.2.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"mocha": "^9.1.3", | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.4.4" | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"mocha": "^9.2.2", | ||
"prettier": "^2.6.2", | ||
"typescript": "^4.6.3" | ||
}, | ||
@@ -40,0 +40,0 @@ "eslintConfig": { |
@@ -7,2 +7,13 @@ export interface Sequence<T> { | ||
export interface Mapping<K, V> { | ||
has(key: K): boolean; | ||
get(key: K): V | undefined; | ||
forEach(callback: (value: V, key: K) => void): void; | ||
} | ||
export type AnyMapping<K, V> = K extends keyof any | ||
? Record<K, V> | Mapping<K, V> | ||
: Mapping<K, V>; | ||
export type IntoInterator<T> = Iterable<T> | Iterator<T> | Sequence<T>; | ||
export type IntoEntriesIterator<K, V> = IntoInterator<[key: K, value: V]>; |
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
39010
998