Skip to content

Commit 2ab1dc9

Browse files
authored
Merge pull request #25 from datastructures-js/fix_type
Fix type
2 parents 395a402 + e635630 commit 2ab1dc9

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## [4.2.1] - 2022-05-30
9+
### Fixed
10+
- added push & pop to ts types.
11+
812
## [4.2.0] - 2022-05-30
913
### Added
1014
- push & pop as synonyms for enqueue & dequeue

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@datastructures-js/queue",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "a performant queue implementation in javascript",
55
"main": "index.js",
66
"scripts": {

src/queue.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ export class Queue<T> {
33
isEmpty(): boolean;
44
size(): number;
55
enqueue(element: T): Queue<T>;
6+
push(element: T): Queue<T>;
67
dequeue(): T;
8+
pop(): T;
79
front(): T;
810
back(): T;
911
toArray(): T[];

0 commit comments

Comments
 (0)