@blackglory/structures
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -14,1 +14,2 @@ export * from './box'; | ||
export * from './sparse-set'; | ||
export { DynamicTypedArray } from './dynamic-typed-array'; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DynamicTypedArray = void 0; | ||
__exportStar(require("./box"), exports); | ||
@@ -31,2 +32,4 @@ __exportStar(require("./cons"), exports); | ||
__exportStar(require("./sparse-set"), exports); | ||
var dynamic_typed_array_1 = require("./dynamic-typed-array"); | ||
Object.defineProperty(exports, "DynamicTypedArray", { enumerable: true, get: function () { return dynamic_typed_array_1.DynamicTypedArray; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -14,1 +14,2 @@ export * from './box'; | ||
export * from './sparse-set'; | ||
export { DynamicTypedArray } from './dynamic-typed-array'; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DynamicTypedArray = void 0; | ||
__exportStar(require("./box"), exports); | ||
@@ -31,2 +32,4 @@ __exportStar(require("./cons"), exports); | ||
__exportStar(require("./sparse-set"), exports); | ||
var dynamic_typed_array_1 = require("./dynamic-typed-array"); | ||
Object.defineProperty(exports, "DynamicTypedArray", { enumerable: true, get: function () { return dynamic_typed_array_1.DynamicTypedArray; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@blackglory/structures", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "", | ||
@@ -73,8 +73,8 @@ "files": [ | ||
"@blackglory/errors": "^2.2.1", | ||
"@blackglory/types": "^1.1.0", | ||
"@blackglory/types": "^1.2.1", | ||
"extra-timers": "^0.2.5", | ||
"iterable-operator": "^1.1.0", | ||
"justypes": "^2.0.0", | ||
"justypes": "^2.1.0", | ||
"rxjs": "^7.5.5" | ||
} | ||
} |
@@ -221,1 +221,23 @@ # structures | ||
``` | ||
### DynamicTypedArray | ||
```ts | ||
class DynamicTypedArray<T extends TypedArrayConstructor> { | ||
get [Symbol.toStringTag](): string | ||
get capacity(): number | ||
get length(): number | ||
constructor( | ||
typedArrayConstructor: T | ||
, options: { | ||
capacity?: number = 0 | ||
growthFactor?: number = 1.5 | ||
} = {} | ||
) | ||
set(index: number, value: number): void | ||
get(index: number): number | undefined | ||
push(...values: number[]): void | ||
pop(): number | undefined | ||
} | ||
``` |
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
6910808
109
39788
243
Updated@blackglory/types@^1.2.1
Updatedjustypes@^2.1.0