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 #897 Add built-in fields to Context object type #902

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

seratch
Copy link
Member

@seratch seratch commented Apr 28, 2021

Summary

This pull request adds the built-in fields in Context interface. The change does not bring any breaking changes. It just bring minor improvements for TypeScript users and better auto-completion in VS Code. Feedback / suggestions about the comments are welcome!

As I would like to know others' thoughts on this, this is still in draft stage. If other maintainers are fine with this, I will add this to v3.4 milestone.

This PR fixes #897 if it's merged.

Requirements (place an x in each [ ])

@seratch seratch added enhancement M-T: A feature request for new functionality TypeScript-specific labels Apr 28, 2021
@seratch seratch self-assigned this Apr 28, 2021
@seratch seratch marked this pull request as draft April 28, 2021 09:06
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #902 (319bf8a) into main (3db8da7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #902   +/-   ##
=======================================
  Coverage   66.19%   66.19%           
=======================================
  Files          13       13           
  Lines        1204     1204           
  Branches      355      355           
=======================================
  Hits          797      797           
  Misses        338      338           
  Partials       69       69           

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 3db8da7...319bf8a. Read the comment docs.

Copy link
Member

@stevengill stevengill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change!!

src/types/middleware.ts Outdated Show resolved Hide resolved
@seratch seratch added this to the 3.4.0 milestone Apr 29, 2021
@seratch seratch marked this pull request as ready for review April 29, 2021 00:06
@seratch
Copy link
Member Author

seratch commented Apr 29, 2021

@stevengill Thanks! I'm glad that we can move this forward 👍

@seratch seratch merged commit a5ac8fd into slackapi:main Apr 29, 2021
@seratch seratch deleted the issue-897-built-in-context-fields branch April 29, 2021 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement M-T: A feature request for new functionality TypeScript-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for type-safe context objects for TypeScript
2 participants