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

Move module declarations for Markdown and MDX so they're available everywhere #4928

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

Princesseuh
Copy link
Member

Changes

It turns out that importing Markdown and MDX files works outside of Astro files, so the module declaration needs to be in client-base.d.ts and not env.d.ts. The latter being only things available in Astro files

Testing

Tested manually. Stackblitz showing the behaviour working: https://stackblitz.com/edit/github-skrkkd?file=src%2Fscript.ts,src%2Fpages%2Findex.astro&on=stackblitz

Docs

N/A

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 30, 2022
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2022

🦋 Changeset detected

Latest commit: 934ad46

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

@Princesseuh
Copy link
Member Author

I don't really get why the build is failing 🤔

@Princesseuh Princesseuh merged commit 7690849 into main Sep 30, 2022
@Princesseuh Princesseuh deleted the move-md-modules-def branch September 30, 2022 15:06
@astrobot-houston astrobot-houston mentioned this pull request Sep 30, 2022
@Princesseuh Princesseuh self-assigned this Oct 3, 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

2 participants