mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -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:
parent
6bbb3f5e5e
commit
d7e97a775d
2 changed files with 18 additions and 11 deletions
5
.changeset/strange-carpets-drop.md
Normal file
5
.changeset/strange-carpets-drop.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Adds `render()` to stub content types
|
24
packages/astro/types/content.d.ts
vendored
24
packages/astro/types/content.d.ts
vendored
|
@ -89,27 +89,29 @@ declare module 'astro:content' {
|
||||||
input: CollectionConfig<S>,
|
input: CollectionConfig<S>,
|
||||||
): 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;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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
|
// biome-ignore lint/correctness/noUnusedVariables: stub generic type to match generated type
|
||||||
export type CollectionEntry<C> = any;
|
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;
|
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;
|
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;
|
export type ContentConfig = any;
|
||||||
|
/** Run `astro dev` or `astro sync` to generate high fidelity types */
|
||||||
|
export const render: (entry: any) => any;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue