-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: improve TypeScript types #646
Conversation
@@ -156,7 +160,7 @@ export class Filter { | |||
* // startTest2Exclusive: 'value3' | |||
* // } | |||
*/ | |||
static createRange(start, end, key) { | |||
static createRange(start, end, key: string) { |
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.
looks like... Pascal. What are the types for start
and end
? :)
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.
Added some cheap well know ones first. This library is a trip man. Will come back around for completeness again.
@@ -894,23 +892,22 @@ export class Filter { | |||
* } | |||
* ]; | |||
*/ | |||
value(value) { | |||
value(value): void { |
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.
missing type for the parameter
@@ -917,5 +948,4 @@ promisifyAll(Bigtable, { | |||
module.exports = Bigtable; |
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 is unrelated, but I don't like this :) We can change this to proper TypeScript exports.
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.
I started pointing out incomplete types but I guess it's the first (well, the third) step and we'll have more PRs. Would love to see noImplicitAny
enabled for this library!
Trying to do this bit by bit :) I find the larger the PR the less likely it is to work 😂 But yeah, noImplicitAny coming in like a 5 PR set. |
Codecov Report
@@ Coverage Diff @@
## master #646 +/- ##
==========================================
+ Coverage 96.31% 96.33% +0.02%
==========================================
Files 15 15
Lines 12818 12892 +74
Branches 802 799 -3
==========================================
+ Hits 12346 12420 +74
Misses 469 469
Partials 3 3
Continue to review full report at Codecov.
|
No description provided.