rehype-mdx-export-headings/index.d.ts

16 lines
473 B
TypeScript
Raw Normal View History

2022-11-04 04:05:44 +09:00
export = ExportHeadings;
/** @type {import('unified').Plugin<[Partial<ExportHeadingsOptions>?], import('hast').Root>} */
declare const ExportHeadings: import('unified').Plugin<[Partial<ExportHeadingsOptions>?], import('hast').Root>;
declare namespace ExportHeadings {
2022-11-04 19:54:45 +09:00
export { ExportHeadingsOptions, HeadingInfo };
2022-11-04 04:05:44 +09:00
}
type ExportHeadingsOptions = {
tags: string[];
name: string;
};
2022-11-04 19:54:45 +09:00
type HeadingInfo = {
tagName: string;
label: string;
id: string;
};