no longer using astro:content
This commit is contained in:
parent
d16a23dcd7
commit
1094007f84
|
@ -1,17 +0,0 @@
|
||||||
declare module 'astro:content' {
|
|
||||||
export interface AstroCollectionEntry<TData> {
|
|
||||||
body: string
|
|
||||||
collection: string
|
|
||||||
data: TData
|
|
||||||
id: string
|
|
||||||
render: () => Promise<{
|
|
||||||
Content: import('astro').MarkdownInstance<object>['Content']
|
|
||||||
}>
|
|
||||||
slug: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getCollection<TData>(
|
|
||||||
collection: string,
|
|
||||||
filter?: (entry: AstroCollectionEntry<TData>) => boolean,
|
|
||||||
): Promise<AstroCollectionEntry<TData>[]>
|
|
||||||
}
|
|
Loading…
Reference in New Issue