-
Notifications
You must be signed in to change notification settings - Fork 3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GSoC2024] add return types to fix typescript warnings #7689
Conversation
I think this PR is not ready yet, there are a few changes which I just realized need to be added, I'll add those and ping you accordingly, thanks. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7689 +/- ##
===========================================
+ Coverage 83.36% 83.37% +0.01%
===========================================
Files 373 373
Lines 39722 39722
Branches 3747 3747
===========================================
+ Hits 33113 33118 +5
+ Misses 6609 6604 -5
|
@@ -0,0 +1,4 @@ | |||
### Fixed | |||
|
|||
- Fixed typescript linting errors in ts files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix has no impact on the user, so I don't think it needs a changelog entry.
Hello, do you have any plans regarding the pull request? |
Yes @bsekachev , I left a comment above under your review, please let me know. Thanks. |
Yes, one week ago you mentioned "tomorrow". That is why I am asking :) |
Sorry about that, @bsekachev I wanted to ask something about your comment under the Promise review, you said we should use something more concrete here instead of any, but that is Lambda manager, and we are very uncertain what will be returned here, hence doesn't |
I believe we are certain enough. Otherwise how would it be possible to work with this API?
Perhaps the output is different for trackers, detectors and interactors. |
Hi @bsekachev, I've added the required types and currently added the interfaces on top of the Lambda Manager file, please let me know if that is fine or if there is some other place more appropriate for the interfaces. |
Please, avoid changes in |
Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com>
Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com>
Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com>
Co-authored-by: Boris Sekachev <sekachev.bs@gmail.com>
@bsekachev Updated |
Just FYI: #7785 |
I found some more typescript warnings because of missing return types, maybe I can create a follow-up pull request for this if you allow it. |
Fixes: #7598
Motivation and context
There are some minor typescript errors in the files, this pull request fixes those.
How has this been tested?
Ran the code after changing, and it was functional like before, this didn't need any additional test.
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.