@blackglory/structures
Advanced tools
Comparing version 0.10.10 to 0.10.11
@@ -7,2 +7,3 @@ export declare class SparseMap<T> { | ||
get size(): number; | ||
get internalArray(): T[]; | ||
entries(): IterableIterator<[key: number, value: T]>; | ||
@@ -9,0 +10,0 @@ keys(): IterableIterator<number>; |
@@ -16,2 +16,5 @@ "use strict"; | ||
} | ||
get internalArray() { | ||
return this.indexToValue; | ||
} | ||
*entries() { | ||
@@ -18,0 +21,0 @@ for (let i = 0; i < this.indexToKey.length; i++) { |
@@ -1,2 +0,2 @@ | ||
import { TypedArrayConstructor } from 'justypes'; | ||
import { TypedArrayConstructor, TypedArrayOfConstructor } from 'justypes'; | ||
import { DynamicTypedArray } from './dynamic-typed-array'; | ||
@@ -9,2 +9,3 @@ export declare class TypedSparseMap<T extends TypedArrayConstructor> { | ||
get size(): number; | ||
get internalTypedArray(): TypedArrayOfConstructor<T>; | ||
constructor(array: DynamicTypedArray<T>); | ||
@@ -11,0 +12,0 @@ entries(): IterableIterator<[key: number, value: number]>; |
@@ -18,2 +18,5 @@ "use strict"; | ||
} | ||
get internalTypedArray() { | ||
return this.indexToValue.internalTypedArray; | ||
} | ||
*entries() { | ||
@@ -20,0 +23,0 @@ for (let i = 0; i < this.indexToKey.length; i++) { |
@@ -7,2 +7,3 @@ export declare class SparseMap<T> { | ||
get size(): number; | ||
get internalArray(): T[]; | ||
entries(): IterableIterator<[key: number, value: T]>; | ||
@@ -9,0 +10,0 @@ keys(): IterableIterator<number>; |
@@ -16,2 +16,5 @@ "use strict"; | ||
} | ||
get internalArray() { | ||
return this.indexToValue; | ||
} | ||
*entries() { | ||
@@ -18,0 +21,0 @@ for (let i = 0; i < this.indexToKey.length; i++) { |
@@ -1,2 +0,2 @@ | ||
import { TypedArrayConstructor } from 'justypes'; | ||
import { TypedArrayConstructor, TypedArrayOfConstructor } from 'justypes'; | ||
import { DynamicTypedArray } from './dynamic-typed-array'; | ||
@@ -9,2 +9,3 @@ export declare class TypedSparseMap<T extends TypedArrayConstructor> { | ||
get size(): number; | ||
get internalTypedArray(): TypedArrayOfConstructor<T>; | ||
constructor(array: DynamicTypedArray<T>); | ||
@@ -11,0 +12,0 @@ entries(): IterableIterator<[key: number, value: number]>; |
@@ -18,2 +18,5 @@ "use strict"; | ||
} | ||
get internalTypedArray() { | ||
return this.indexToValue.internalTypedArray; | ||
} | ||
*entries() { | ||
@@ -20,0 +23,0 @@ for (let i = 0; i < this.indexToKey.length; i++) { |
{ | ||
"name": "@blackglory/structures", | ||
"version": "0.10.10", | ||
"version": "0.10.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -234,2 +234,10 @@ # structures | ||
/** | ||
* `SparseMap` cannot respond to any operations on the internal array, | ||
* you must ensure that indexes accessed are less than the length of `SparseMap`. | ||
* | ||
* Keys do not correspond to indexes of the array. | ||
*/ | ||
get internalArray(): T[] | ||
entries(): IterableIterator<[key: number, value: T]> | ||
@@ -255,3 +263,3 @@ keys(): IterableIterator<number> | ||
/** | ||
* Note that `DynamicTypedArray` cannot respond to any operations on the internal array, | ||
* `DynamicTypedArray` cannot respond to any operations on the internal array, | ||
* you must ensure that indexes accessed are less than the length of `DynamicTypedArray`. | ||
@@ -299,2 +307,10 @@ */ | ||
/** | ||
* `SparseMap` cannot respond to any operations on the internal array, | ||
* you must ensure that indexes accessed are less than the length of `SparseMap`. | ||
* | ||
* Keys do not correspond to indexes of the array. | ||
*/ | ||
get internalTypedArray(): TypedArrayOfConstructor<T> | ||
constructor(array: DynamicTypedArray<T>) | ||
@@ -301,0 +317,0 @@ |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
11913273
68854
358