withastro
astro
BlogDocsChangelog

feat(mdx): add TypeScript types for Content components prop

#14591
Comparing
claude/investigate-astro-issue-011CUJzAzC4bZ5oJVmmmUqBu
(
e728491
) with
main
(
577d051
)
CodSpeed Performance Gauge
0%
Untouched
6

Benchmarks

Passed

Rendering: streaming [false], .md file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
+1%
12.9 ms12.8 ms
Rendering: streaming [false], .mdx file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
0%
717.3 ms713.9 ms
Rendering: streaming [true], .astro file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
0%
938.2 ms934.9 ms
Rendering: streaming [false], .astro file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
0%
889 ms886.4 ms
Rendering: streaming [true], .mdx file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
0%
724.9 ms723.9 ms
Rendering: streaming [true], .md file
benchmark/bench/codspeed.bench.js::Bench rendering
CodSpeed Performance Gauge
0%
12.8 ms12.8 ms

Commits

Click on a commit to change the comparison range
Base
main
577d051
-0.12%
feat(mdx): add TypeScript types for Content components prop Adds proper TypeScript support for passing custom components to MDX Content component via the components prop. Changes: - Add MDXContentProps interface defining the components prop - Add MDXContent type that extends AstroComponentFactory with typed props - Update MDX render type to use MDXContent instead of plain function - Maintains link to base AstroComponentFactory type via intersection This addresses part of issue #14490 by providing TypeScript intellisense and type checking for the components prop when using await render(). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4d9f8f5
1 day ago
by claude
+0.03%
chore: add changeset for MDX Content component types Adds changeset documenting the new TypeScript support for the components prop on MDX Content component. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2e2512c
1 day ago
by claude
+0.07%
Update .changeset/mdx-content-component-types.md Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
28bc46b
15 hours ago
by matthewp
+0.11%
Update packages/astro/src/types/public/content.ts Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
f56dd3a
15 hours ago
by matthewp
+0.31%
Merge branch 'main' into claude/investigate-astro-issue-011CUJzAzC4bZ5oJVmmmUqBu
e728491
12 hours ago
by matthewp
© 2025 CodSpeed Technology
Home Terms Privacy Docs