summaryrefslogtreecommitdiff
path: root/scripts/index.js
diff options
context:
space:
mode:
authorGravatar Don Denton <don@happycollision.com> 2022-06-14 16:20:13 -0400
committerGravatar GitHub <noreply@github.com> 2022-06-14 15:20:13 -0500
commit48161b77caf35a9f3c285c0c7fbb9d8a937241c9 (patch)
tree29281367a5d6293f21f315fc8a83e55edcae177a /scripts/index.js
parentacc8afbdda5d7e2075d88a01978f2fa7d62bd9cb (diff)
downloadastro-48161b77caf35a9f3c285c0c7fbb9d8a937241c9.tar.gz
astro-48161b77caf35a9f3c285c0c7fbb9d8a937241c9.tar.zst
astro-48161b77caf35a9f3c285c0c7fbb9d8a937241c9.zip
Fix unintentional missing type data in `MarkdownInstance` (#3397)
* Update MarkdownInstance type The return of the `default` function includes the same `frontmatter` data as the parent object, merged with the `astro` data. The inclusion of that frontmatter type was previously not recognized by TS, and fell back to a `Record<string, any>`. This change persists the more accurate type, as the runtime code does. * fixup! Update MarkdownInstance type (This change is what I'd personally do, but I don't really know how you expect people to use `MarkdownContent` in practice, or if there is some deeper benefit you wish to exploit by leaving it as an interface instead of a type.
Diffstat (limited to 'scripts/index.js')
0 files changed, 0 insertions, 0 deletions