Comparing version 0.39.1 to 0.39.2
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import {IArrayLikeConstructor} from './utils/types'; | ||
import {IArrayLikeConstructor, TypedArray} from './utils/types'; | ||
@@ -27,3 +27,3 @@ export default class CircularBuffer<T> implements Iterable<T> { | ||
forEach(callback: (item: T, index: number, buffer: this) => void, scope?: any): void; | ||
toArray(): Iterable<T>; | ||
toArray(): Array<T> | TypedArray; | ||
values(): IterableIterator<T>; | ||
@@ -35,3 +35,3 @@ entries(): IterableIterator<[number, T]>; | ||
// Statics | ||
static from<I>(iterable: Iterable<I> | {[key: string] : I}, ArrayClass: IArrayLikeConstructor, capacity?: number): CircularBuffer<I>; | ||
static from<I>(iterable: Iterable<I> | {[key: string]: I}, ArrayClass: IArrayLikeConstructor, capacity?: number): CircularBuffer<I>; | ||
} |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import {IArrayLikeConstructor} from './utils/types'; | ||
import {IArrayLikeConstructor, TypedArray} from './utils/types'; | ||
@@ -27,3 +27,3 @@ export default class FixedDeque<T> implements Iterable<T> { | ||
forEach(callback: (item: T, index: number, buffer: this) => void, scope?: any): void; | ||
toArray(): Iterable<T>; | ||
toArray(): Array<T> | TypedArray; | ||
values(): IterableIterator<T>; | ||
@@ -35,3 +35,3 @@ entries(): IterableIterator<[number, T]>; | ||
// Statics | ||
static from<I>(iterable: Iterable<I> | {[key: string] : I}, ArrayClass: IArrayLikeConstructor, capacity?: number): FixedDeque<I>; | ||
static from<I>(iterable: Iterable<I> | {[key: string]: I}, ArrayClass: IArrayLikeConstructor, capacity?: number): FixedDeque<I>; | ||
} |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import {IArrayLikeConstructor} from './utils/types'; | ||
import {IArrayLikeConstructor, TypedArray} from './utils/types'; | ||
@@ -23,5 +23,5 @@ type HeapComparator<T> = (a: T, b: T) => number; | ||
push(item: T): number; | ||
consume(): Iterable<T>; | ||
toArray(): Iterable<T>; | ||
consume(): Array<T> | TypedArray; | ||
toArray(): Array<T> | TypedArray; | ||
inspect(): any; | ||
} |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import {IArrayLikeConstructor} from './utils/types'; | ||
import {IArrayLikeConstructor, TypedArray} from './utils/types'; | ||
@@ -23,3 +23,3 @@ export default class FixedStack<T> implements Iterable<T> { | ||
forEach(callback: (item: T, index: number, stack: this) => void, scope?: any): void; | ||
toArray(): Iterable<T>; | ||
toArray(): Array<T> | TypedArray; | ||
values(): IterableIterator<T>; | ||
@@ -34,3 +34,3 @@ entries(): IterableIterator<[number, T]>; | ||
static from<I>( | ||
iterable: Iterable<I> | {[key: string] : I}, | ||
iterable: Iterable<I> | {[key: string]: I}, | ||
ArrayClass: IArrayLikeConstructor, | ||
@@ -37,0 +37,0 @@ capacity?: number |
@@ -20,4 +20,4 @@ /** | ||
pop(): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
toArray(): Array<T>; | ||
@@ -29,3 +29,3 @@ consume(): Array<T>; | ||
static from<I>( | ||
iterable: Iterable<I> | {[key: string] : I}, | ||
iterable: Iterable<I> | {[key: string]: I}, | ||
comparator?: HeapComparator<I> | ||
@@ -48,11 +48,11 @@ ): Heap<I>; | ||
pop(): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
toArray(): Array<T>; | ||
consume(): Array<T>; | ||
inspect(): any; | ||
// Statics | ||
static from<I>( | ||
iterable: Iterable<I> | {[key: string] : I}, | ||
iterable: Iterable<I> | {[key: string]: I}, | ||
comparator?: HeapComparator<I> | ||
@@ -75,11 +75,11 @@ ): Heap<I>; | ||
pop(): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
replace(item: T): T | undefined; | ||
pushpop(item: T): T | undefined; | ||
toArray(): Array<T>; | ||
consume(): Array<T>; | ||
inspect(): any; | ||
// Statics | ||
static from<I>( | ||
iterable: Iterable<I> | {[key: string] : I}, | ||
iterable: Iterable<I> | {[key: string]: I}, | ||
comparator?: HeapComparator<I> | ||
@@ -86,0 +86,0 @@ ): Heap<I>; |
{ | ||
"name": "mnemonist", | ||
"version": "0.39.1", | ||
"version": "0.39.2", | ||
"description": "Curated collection of data structures for the JavaScript/TypeScript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -17,1 +17,3 @@ /** | ||
} | ||
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; |
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
377899