Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Typescript#8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
wardenfeng wants to merge32 commits intoBishop92:master
base:master
Choose a base branch
Loading
fromwardenfeng:typescript
Open

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@wardenfeng

[8]ページ先頭

©2009-2025 Movatter.jp