2022-03-03 12:34:04 -05:00
/// <reference types="vite/client" />
2022-03-28 19:16:06 -05:00
type Astro = import ( 'astro' ) . AstroGlobal ;
2022-03-03 12:34:04 -05:00
// 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)
/ * *
2022-04-07 16:08:27 -05:00
* Astro global available in all contexts in . astro files
*
* [ Astro documentation ] ( https : //docs.astro.build/reference/api-reference/#astro-global)
2022-03-03 12:34:04 -05:00
* /
declare const Astro : Readonly < Astro > ;
declare const Fragment : any ;
2022-04-24 18:13:33 -05:00
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' ] ;
2022-05-27 15:56:08 -05:00
export const rawContent : MD [ 'rawContent' ] ;
export const compiledContent : MD [ 'compiledContent' ] ;
2022-04-24 18:13:33 -05:00
const load : MD [ 'default' ] ;
export default load ;
}