Files
authentik/web/types/mdx.d.ts
Teffen Ellis c28b65a3f2 Web: Controllers cleanup (#14616)
* web: Fix issues surrounding availability of controllers during init.

web: Fix edgecase where flow does not have brand.

* web: Fix import path.

* web: Clean up mixin/controller paths.

* web: Prepare for consistent import styling.

- Prep for Storybook fixes.

* web: Update MDX types.

* web: Fix issues surrounding async imports, MDX typing, relative paths.

* web: Format. Clarify.

* web: Group module types.
2025-05-26 07:06:14 -04:00

40 lines
964 B
TypeScript

/**
* @file Provides types for ESBuild "virtual modules" generated from MDX files.
*/
declare module "~docs/types" {
/**
* A parsed JSON module containing MDX content and metadata from ESBuild.
*/
export interface MDXModule {
/**
* The Markdown content of the module.
*/
content: string;
/**
* The public path of the module, typically identical to the docs page path.
*/
publicPath?: string;
/**
* The public directory of the module, used to resolve relative links.
*/
publicDirectory?: string;
}
}
declare module "~docs/*.md" {
/**
* The serialized JSON content of an MD file.
*/
const serializedJSON: string;
export default serializedJSON;
}
declare module "~docs/*.mdx" {
/**
* The serialized JSON content of an MDX file.
*/
const serializedJSON: string;
export default serializedJSON;
}