Skip to content

Conversation

wardenfeng
Copy link

modification

  1. Javascript is converted to typescript
  2. Use generic

Problems after compilation using TSC

These problems are not tested in unit tests

lib/BTree/BTree.ts(266,25): error TS2339: Property 'length' does not exist on type 'BNode'.
lib/BTree/BTree.ts(338,24): error TS2339: Property 'keys' does not exist on type 'BTree'.
lib/HashTable/HashTable.ts(268,24): error TS2339: Property 'key' does not exist on type 'DLLNode<{ key: number; item: T; }>'.
lib/HashTable/HashTable.ts(268,29): error TS2345: Argument of type '{ key: number; item: T; }' is not assignable to parameter of type 'T'.
lib/Set/Set.ts(137,23): error TS2339: Property 'getIterator' does not exist on type 'Set'.
lib/Set/Set.ts(163,23): error TS2339: Property 'getIterator' does not exist on type 'Set'.
lib/Set/Set.ts(223,23): error TS2339: Property 'getIterator' does not exist on type 'Set'.
lib/Trie/TrieIterator.ts(45,34): error TS2339: Property 'successor' does not exist on type 'Trie'.
lib/Trie/TrieIterator.ts(61,34): error TS2339: Property 'predecessor' does not exist on type 'Trie'.
lib/Trie/TrieIterator.ts(77,24): error TS2339: Property 'item' does not exist on type 'string'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant