astro/packages/astro
Alan 08432d5b01
Allow globbed mdx files to have typed frontmatter (#4108)
* Allow frontmatter typing for .mdx files from glob

`Astro.glob<T>("*.md")` is special cased to allow `T` to be a type for the frontmatter in the markdown. Since .mdx files also get frontmatter added to the globbed result, let's type it as such.

* Add changeset

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-08-03 10:45:31 -05:00
..
components Move the Markdown component to its own package (#3986) 2022-07-20 16:45:05 -04:00
e2e Fix lit e2e 2022-07-28 14:17:05 -04:00
src Allow globbed mdx files to have typed frontmatter (#4108) 2022-08-03 10:45:31 -05:00
test remove unused util polyfill dependency (#4097) 2022-08-01 09:15:23 -07:00
astro-jsx.d.ts [ci] format 2022-07-25 15:12:45 +00:00
astro.js Roll back supported Node engines (#3937) 2022-07-15 08:15:04 -04:00
CHANGELOG.md [ci] release (#4116) 2022-08-02 14:50:21 -07:00
client-base.d.ts Fixes type definitions @astrojs/image and adds more documentation to the README (#4045) 2022-07-27 15:39:05 +00:00
client.d.ts Fixes type definitions @astrojs/image and adds more documentation to the README (#4045) 2022-07-27 15:39:05 +00:00
config.d.ts Export defineConfig helper (#2803) 2022-03-15 15:27:17 -05:00
config.mjs Export defineConfig helper (#2803) 2022-03-15 15:27:17 -05:00
env.d.ts Rename Markdown util getHeaders() to getHeadings() (#4031) 2022-07-23 17:23:15 -05:00
package.json [ci] release (#4116) 2022-08-02 14:50:21 -07:00
playwright.config.js [ci] format 2022-07-19 21:49:29 +00:00
README.md fix link (#4070) 2022-07-28 08:11:37 -04:00
tsconfig.json Move client types into Astro (#3851) 2022-07-11 08:12:18 -04:00


Astro logo

Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

Install

# Recommended!
npm create astro@latest

# Manual:
npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our offical documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Sponsors

Astro is generously supported by Netlify, Vercel, and several other amazing organizations listed here.

❤️ Sponsor Astro! ❤️