Skip to content

Commit

Permalink
chore(core): updated typings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jun 29, 2024
1 parent fc74e07 commit bbccda1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ export class MarkdownPageEvent<
*/
frontmatter?: Record<string, any>;

// required for typing purposes but not used
/** @hidden */
pageHeadings: any;
/** @hidden */
pageSections: any;
/** @hidden */
startNewSection: any;

/**
* Triggered before a document will be rendered.
* @event
Expand Down
5 changes: 2 additions & 3 deletions packages/typedoc-plugin-markdown/src/theme/markdown-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { RenderTemplate } from '@plugin/types';
import {
DeclarationReflection,
DocumentReflection,
PageEvent,
ProjectReflection,
Reflection,
ReflectionKind,
Expand Down Expand Up @@ -37,8 +36,8 @@ export class MarkdownTheme extends Theme {
* @internal
*/
render(
page: PageEvent<Reflection>,
template: RenderTemplate<PageEvent<Reflection>>,
page: MarkdownPageEvent<Reflection>,
template: RenderTemplate<MarkdownPageEvent<Reflection>>,
) {
try {
return formatMarkdown(template(page));
Expand Down

0 comments on commit bbccda1

Please sign in to comment.