Skip to content

Declare image modules in the Next.js 16 fixture - #1803

Closed
askoufis wants to merge 1 commit into
astro/bump-pnpmfrom
astro/fixture-image-types
Closed

askoufis wants to merge 1 commit into
astro/bump-pnpmfrom
astro/fixture-image-types

Conversation

@askoufis

@askoufis askoufis commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The fixture imports a .png, but its type declarations for image imports come from next-env.d.ts, which is gitignored. The root type check only passed because the docs site's index.d.ts declared *.png globally, and the site is included in the root tsconfig.json.

This declares *.png in the fixture itself, so it no longer relies on the site's declarations. That's needed once the site gets its own type check in the Astro migration.


Stack created with GitHub Stacks CLI • Give Feedback 💬

The fixture imports a `.png`, but its type declarations for image imports come from `next-env.d.ts`, which is gitignored. The root type check only passed because the docs site's `index.d.ts` declared `*.png` globally, and the site is included in the root `tsconfig.json`.

This declares `*.png` in the fixture itself, so it no longer relies on the site's declarations. That's needed once the site gets its own type check in the Astro migration.
@askoufis
askoufis added this pull request to stack #1804 November 3, 2026 10:58
@changeset-bot

changeset-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6dbcddc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@askoufis askoufis closed this Nov 8, 2026
@askoufis
askoufis deleted the astro/fixture-image-types branch November 8, 2026 10:36
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.

1 participant