2021-08-10 13:30:02 +00:00
|
|
|
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;
|
|
|
|
|
2021-08-10 13:31:09 +00:00
|
|
|
export default function (): string;
|