Skip to content
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

Merged
merged 1 commit into from Mar 18, 2020
Merged

fix: improve TypeScript types #646

merged 1 commit into from Mar 18, 2020

Conversation

JustinBeckwith
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 18, 2020
@@ -156,7 +160,7 @@ export class Filter {
* // startTest2Exclusive: 'value3'
* // }
*/
static createRange(start, end, key) {
static createRange(start, end, key: string) {
Copy link
Contributor

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? :)

Copy link
Contributor Author

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 {
Copy link
Contributor

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;
Copy link
Contributor

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.

Copy link
Contributor

@alexander-fenster alexander-fenster left a 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!

@JustinBeckwith
Copy link
Contributor Author

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.

@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 18, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 18, 2020
@codecov
Copy link

codecov bot commented Mar 18, 2020

Codecov Report

Merging #646 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/index.ts 100% <100%> (ø) ⬆️
src/app-profile.ts 100% <100%> (ø) ⬆️
src/decorateStatus.ts 100% <100%> (ø) ⬆️
src/filter.ts 100% <100%> (ø) ⬆️
src/mutation.ts 100% <100%> (ø) ⬆️
src/table.ts 99.83% <100%> (ø) ⬆️
src/cluster.ts 99.34% <100%> (ø) ⬆️
src/instance.ts 99.89% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 726f7fa...4e01c74. Read the comment docs.

@JustinBeckwith JustinBeckwith merged commit f4e1b86 into master Mar 18, 2020
@stephenplusplus stephenplusplus deleted the types3 branch August 10, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants