Skip to content

Commit

Permalink
Merge pull request #41 from datastructures-js/development
Browse files Browse the repository at this point in the history
fix ts export
  • Loading branch information
eyas-ranjous authored Jun 20, 2021
2 parents c337baf + ed6c519 commit c325c07
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [4.2.2] - 2021-06-20

### Fixed
- index.d.ts


## [4.2.1] - 2021-06-20

### Fixed
Expand Down
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { BinarySearchTree } from'./src/binarySearchTree';
import { BinarySearchTreeNode } from'./src/binarySearchTreeNode';
import { AvlTree } from'./src/avlTree';
import { AvlTreeNode } from'./src/avlTreeNode';

export { BinarySearchTree }
export { BinarySearchTreeNode }
export { AvlTree }
export { AvlTreeNode }
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { BinarySearchTreeNode } = require('./src/binarySearchTreeNode');
const { AvlTreeNode } = require('./src/avlTreeNode');
const { BinarySearchTree } = require('./src/binarySearchTree');
const { BinarySearchTreeNode } = require('./src/binarySearchTreeNode');
const { AvlTree } = require('./src/avlTree');
const { AvlTreeNode } = require('./src/avlTreeNode');

module.exports = {
BinarySearchTreeNode,
BinarySearchTree,
AvlTreeNode,
AvlTree
BinarySearchTreeNode,
AvlTree,
AvlTreeNode
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datastructures-js/binary-search-tree",
"version": "4.2.1",
"version": "4.2.2",
"description": "binary search tree & avl tree (self balancing tree) implementation in javascript",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c325c07

Please sign in to comment.