init
This commit is contained in:
38
node_modules/remark-mdx-frontmatter/dist/remark-mdx-frontmatter.d.ts
generated
vendored
Normal file
38
node_modules/remark-mdx-frontmatter/dist/remark-mdx-frontmatter.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { type Root } from 'mdast';
|
||||
import { type Plugin } from 'unified';
|
||||
import { define } from 'unist-util-mdx-define';
|
||||
type FrontmatterParsers = Record<string, (value: string) => unknown>;
|
||||
export interface RemarkMdxFrontmatterOptions extends define.Options {
|
||||
/**
|
||||
* The default value to export if no frontmatter data is found.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
default?: unknown;
|
||||
/**
|
||||
* If specified, the YAML data is exported using this name. Otherwise, each
|
||||
* object key will be used as an export name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* A mapping of node types to parsers.
|
||||
*
|
||||
* Each key represents a frontmatter node type. The value is a function that accepts the
|
||||
* frontmatter data as a string, and returns the parsed data.
|
||||
*
|
||||
* By default `yaml` nodes will be parsed using [`yaml`](https://github.com/eemeli/yaml) and
|
||||
* `toml` nodes using [`toml`](https://github.com/BinaryMuse/toml-node).
|
||||
*/
|
||||
parsers?: FrontmatterParsers;
|
||||
}
|
||||
/**
|
||||
* A remark plugin to expose frontmatter data as named exports.
|
||||
*
|
||||
* @param options
|
||||
* Optional options to configure the output.
|
||||
* @returns
|
||||
* A unified transformer.
|
||||
*/
|
||||
declare const remarkMdxFrontmatter: Plugin<[RemarkMdxFrontmatterOptions?], Root>;
|
||||
export default remarkMdxFrontmatter;
|
||||
//# sourceMappingURL=remark-mdx-frontmatter.d.ts.map
|
||||
Reference in New Issue
Block a user