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

feat: specify Astro.self type in TSX output #843

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Jul 31, 2023

Changes

This depends on withastro/astro#7866.

Given the new AstroGlobal type parameter (Self), we can strongly type it to the current default component.

So here i've updated the compiler to output typeof __AstroComponent_ (or whatever name we generated for it).

Testing

Updated the existing tests to assert for the added parameter.

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Jul 31, 2023

🦋 Changeset detected

Latest commit: 646e0fc

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

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler Patch

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

@Princesseuh Princesseuh marked this pull request as ready for review August 14, 2023 12:36
@Princesseuh Princesseuh merged commit 80b7e42 into withastro:main Aug 14, 2023
@43081j 43081j deleted the astro-global branch August 14, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants