From bbccda1b57ff9f09eeab7223977c0e00616b29c3 Mon Sep 17 00:00:00 2001 From: tgreyuk Date: Sun, 30 Jun 2024 00:40:57 +0100 Subject: [PATCH] chore(core): updated typings --- .../src/events/markdown-page-event.ts | 8 ++++++++ .../typedoc-plugin-markdown/src/theme/markdown-theme.ts | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/typedoc-plugin-markdown/src/events/markdown-page-event.ts b/packages/typedoc-plugin-markdown/src/events/markdown-page-event.ts index f31fc0dcd..105b4bc8a 100644 --- a/packages/typedoc-plugin-markdown/src/events/markdown-page-event.ts +++ b/packages/typedoc-plugin-markdown/src/events/markdown-page-event.ts @@ -41,6 +41,14 @@ export class MarkdownPageEvent< */ frontmatter?: Record; + // required for typing purposes but not used + /** @hidden */ + pageHeadings: any; + /** @hidden */ + pageSections: any; + /** @hidden */ + startNewSection: any; + /** * Triggered before a document will be rendered. * @event diff --git a/packages/typedoc-plugin-markdown/src/theme/markdown-theme.ts b/packages/typedoc-plugin-markdown/src/theme/markdown-theme.ts index 12aeffe91..d62acccb9 100644 --- a/packages/typedoc-plugin-markdown/src/theme/markdown-theme.ts +++ b/packages/typedoc-plugin-markdown/src/theme/markdown-theme.ts @@ -7,7 +7,6 @@ import { RenderTemplate } from '@plugin/types'; import { DeclarationReflection, DocumentReflection, - PageEvent, ProjectReflection, Reflection, ReflectionKind, @@ -37,8 +36,8 @@ export class MarkdownTheme extends Theme { * @internal */ render( - page: PageEvent, - template: RenderTemplate>, + page: MarkdownPageEvent, + template: RenderTemplate>, ) { try { return formatMarkdown(template(page));