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: Astro imports in typescript #176

Merged
merged 2 commits into from
Sep 15, 2024
Merged

Conversation

luukbrauckmann
Copy link
Member

@luukbrauckmann luukbrauckmann commented Sep 13, 2024

Changes

  • Adds TS plugin for .astro files, so it won't be highlighted as an error.

Associated issue

Resolves #175

How to test

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

Copy link

cloudflare-workers-and-pages bot commented Sep 15, 2024

Deploying head-start with  Cloudflare Pages  Cloudflare Pages

Latest commit: 36a1ab1
Status: ✅  Deploy successful!
Preview URL: https://971c7208.head-start.pages.dev
Branch Preview URL: https://fix-astro-imports-in-typescr.head-start.pages.dev

View logs

@jbmoelker jbmoelker merged commit 1e86960 into main Sep 15, 2024
4 checks passed
@jbmoelker jbmoelker deleted the fix/astro-imports-in-typescript branch September 15, 2024 12:08
luukbrauckmann added a commit that referenced this pull request Sep 20, 2024
# Changes

- Adds TS plugin for .astro files, so it won't be highlighted as an
error.

# Associated issue

Resolves #175 

# How to test

<!-- example:
1. Open a non VSCode editor (best is to test in Zed)
2. Checkout branch
3. Run `npm ci`
4. Open a .ts file which imports an .astro file. For example
src/components/Tabs/index.ts
5. Imports should not be highlighted as error.
-->

# Checklist

- [x] I have performed a self-review of my own code
- [x] I have made sure that my PR is easy to review (not too big,
includes comments)
- [x] I have made updated relevant documentation files (in project
README, docs/, etc)
- [x] I have added a decision log entry if the change affects the
architecture or changes a significant technology
- [x] I have notified a reviewer

<!-- Please strike through and check off all items that do not apply
(rather than removing them) -->

Co-authored-by: Jasper Moelker <jasper@voorhoede.nl>
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.

ts: Cannot find module 'x.astro' or its corresponding type declarations.
2 participants