mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
27 lines
612 B
TypeScript
27 lines
612 B
TypeScript
type AstroRenderedHTML = string;
|
|
|
|
type FetchContentResult<ContentFrontmatter extends Record<string, any> = Record<string, any>> = {
|
|
astro: {
|
|
headers: string[];
|
|
source: string;
|
|
html: AstroRenderedHTML;
|
|
};
|
|
url: URL;
|
|
} & ContentFrontmatter;
|
|
|
|
interface AstroPageRequest {
|
|
url: URL;
|
|
canonicalURL: URL;
|
|
}
|
|
|
|
interface Astro {
|
|
isPage: boolean;
|
|
fetchContent<ContentFrontmatter>(globStr: string): FetchContentResult<ContentFrontmatter>[];
|
|
props: Record<string, number | string | any>;
|
|
request: AstroPageRequest;
|
|
site: URL;
|
|
}
|
|
|
|
declare const Astro: Astro;
|
|
|
|
export default function (): string;
|