Astro glob method signature overload for unusual markdown types #987
steve-fenton-octopus
started this conversation in
Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
The
glob
method signature allows a glob for.astro
,.md
, or.mdx
- but it doesn't currently allow more complex glob strings, even though they work.For example, if you have a mix of
.md
and.mdx
you might use*.md*
.This currently issues a warning as
No overload matches this call
.Background & Motivation
I'm working on a site that has ~1,000 markdown files, and a smaller number of
.mdx
files as they need to import sub-content. Others using a mix of extensions would see this error.Goals
The goal of this RFC is to see if there's an acceptable way to have an error-free way to call the
glob
function for mixed file types.Example
Beta Was this translation helpful? Give feedback.
All reactions