Skip to content

Commit

Permalink
Bump 0.39.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Oct 30, 2022
1 parent 4e7b46e commit bea7dc5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.39.5

* Adding partial type declarations for undocumented `utils/typed-arrays`.

## 0.39.4

* Fixing `BiMap.get` and `InverseMap.get` types (@rubenferreira97).
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mnemonist",
"version": "0.39.4",
"version": "0.39.5",
"description": "Curated collection of data structures for the JavaScript/TypeScript.",
"scripts": {
"lint": "eslint --cache ./*.js ./utils ./test",
Expand Down
10 changes: 10 additions & 0 deletions utils/typed-arrays.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export type PointerArray = Uint8Array | Uint16Array | Uint32Array | Float64Array;
export type SignedPointerArray = Int8Array | Int16Array | Int32Array | Float64Array;
export type PointerArrayConstructor = Uint8ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | Float64ArrayConstructor;
export type SignedPointerArrayConstructor = Int8ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor | Float64ArrayConstructor;

export function getPointerArray(size: number): PointerArrayConstructor;
export function getSignedPointerArray(size: number): SignedPointerArrayConstructor;
export function getNumberType(value: number): PointerArrayConstructor | SignedPointerArrayConstructor;
export function isTypedArray(value: unknown): boolean;
export function indices(length: number): PointerArray;

0 comments on commit bea7dc5

Please sign in to comment.