💡 RFC: Infer types from getStaticPaths
in appropriate contexts
#453
Labels
ecosystem: compiler
Issue is caused by a bug in the Astro compiler
Background & Motivation
When
getStaticPaths
is present, we can infer the type forAstro.props
andAstro.params
from it. We can do this automatically, much like we typeAstro.props
according tointerface Props
at the moment.Proposed Solution
Possible solutions
See this part of the compiler for how this works at the moment for
Props
. A similar solution could be implementedAlternatives considered
N/A
Risks, downsides, and/or tradeoffs
N/A
Open Questions
N/A
Detailed Design
No response
Help make it happen!
The text was updated successfully, but these errors were encountered: