0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

fix: add render() to stub content type defs (#12884)

* fix: add render() to stub content type defs

* Better wording
This commit is contained in:
Matt Kane 2025-01-03 12:01:33 +00:00 committed by GitHub
parent 6bbb3f5e5e
commit d7e97a775d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 11 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Adds `render()` to stub content types

View file

@ -89,27 +89,29 @@ declare module 'astro:content' {
input: CollectionConfig<S>,
): CollectionConfig<S>;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const getEntryBySlug: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const getDataEntryById: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const getCollection: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const getEntry: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const getEntries: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const reference: (...args: any[]) => any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export type CollectionKey = any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
// biome-ignore lint/correctness/noUnusedVariables: stub generic type to match generated type
export type CollectionEntry<C> = any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export type ContentCollectionKey = any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export type DataCollectionKey = any;
/** Run `astro sync` to generate high fidelity types */
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export type ContentConfig = any;
/** Run `astro dev` or `astro sync` to generate high fidelity types */
export const render: (entry: any) => any;
}