mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
21869a614a
* Move client types into Astro * Adds a changeset * Fix path to local client * Reference vite/client in our HMR types * Add back in the expect-error * Update types comment
28 lines
942 B
TypeScript
28 lines
942 B
TypeScript
/// <reference path="./client.d.ts" />
|
|
|
|
type Astro = import('astro').AstroGlobal;
|
|
|
|
// We duplicate the description here because editors won't show the JSDoc comment from the imported type (but will for its properties, ex: Astro.request will show the AstroGlobal.request description)
|
|
/**
|
|
* Astro global available in all contexts in .astro files
|
|
*
|
|
* [Astro documentation](https://docs.astro.build/reference/api-reference/#astro-global)
|
|
*/
|
|
declare const Astro: Readonly<Astro>;
|
|
|
|
declare const Fragment: any;
|
|
|
|
declare module '*.md' {
|
|
type MD = import('astro').MarkdownInstance<Record<string, any>>;
|
|
|
|
export const frontmatter: MD['frontmatter'];
|
|
export const file: MD['file'];
|
|
export const url: MD['url'];
|
|
export const getHeaders: MD['getHeaders'];
|
|
export const Content: MD['Content'];
|
|
export const rawContent: MD['rawContent'];
|
|
export const compiledContent: MD['compiledContent'];
|
|
|
|
const load: MD['default'];
|
|
export default load;
|
|
}
|