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(types): add server.headers typing #5635

Merged
merged 3 commits into from Dec 27, 2022

Conversation

SegaraRai
Copy link
Contributor

Changes

Added server.headers typing.
This is needed to use server.headers along with defineConfig.

Testing

I'm sorry but I couldn't figure out how to add TS test so no tests were added.

Docs

I'm not sure about docs generation.

/cc @withastro/maintainers-docs for feedback!

@SegaraRai SegaraRai requested a review from a team as a code owner December 19, 2022 03:22
@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2022

🦋 Changeset detected

Latest commit: 7e90645

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 19, 2022
@SegaraRai SegaraRai force-pushed the fix/server-headers-typing branch 2 times, most recently from 1472382 to 388772f Compare December 19, 2022 22:01
@SegaraRai
Copy link
Contributor Author

CI is failing due to timeout or socket hangup.
My code should not break anything.
For now, I am force-pushing and redoing the commit with the same content.

* @name server.headers
* @typeraw {OutgoingHttpHeaders}
* @default `{}`
* @version 1.70.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* @version 1.70.0
* @version 1.7.0

Just checking on this. (also in line 328)

@matthewp
Copy link
Contributor

@sarah11918 Looks like your commented line has been updated. Just need docs approval for this.

@sarah11918
Copy link
Member

@matthewp Docs approved!

@matthewp matthewp merged commit 376f670 into withastro:main Dec 27, 2022
@astrobot-houston astrobot-houston mentioned this pull request Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants