Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix(types): improve types for LogEntry#448

Merged
ofrobots merged 2 commits intogoogleapis:masterfrom
ofrobots:fix-442
Apr 10, 2019
Merged

fix(types): improve types for LogEntry#448
ofrobots merged 2 commits intogoogleapis:masterfrom
ofrobots:fix-442

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

Fixes: #442

@bcoe I know you wanted to look at this bug too. I had some spare cycles so I went ahead and implemented this. LMK if you have another fix already prepared, or have something more holistic about the types we expose across all of the library. We can close this one in that case.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 10, 2019
@ofrobots ofrobots added the semver: patch A minor bug fix or small change. label Apr 10, 2019
@ofrobots
Copy link
Copy Markdown
Contributor Author

ofrobots commented Apr 10, 2019

I believe this is semver patch as the types have relaxed. An argument can be made that we should restrict the types to accept only Date for timestamp (for example). That would be semver major however.

@callmehiphop
Copy link
Copy Markdown
Contributor

Looks like you need an npm run fix here

@ofrobots
Copy link
Copy Markdown
Contributor Author

Ah, yup. Done.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2019

Codecov Report

Merging #448 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #448   +/-   ##
=======================================
  Coverage   91.33%   91.33%           
=======================================
  Files          14       14           
  Lines         681      681           
  Branches       34       34           
=======================================
  Hits          622      622           
  Misses         41       41           
  Partials       18       18
Impacted Files Coverage Δ
src/entry.ts 100% <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 6b87225...ee07b49. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement. semver: patch A minor bug fix or small change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong types for Entry

3 participants