typedoc2md / typedoc-plugin-markdown

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
https://typedoc-plugin-markdown.org
MIT License
689 stars 172 forks source link

fix: provide correct types for partials #579

Closed ocavue closed 4 months ago

ocavue commented 4 months ago

This PR fixes the TS typing for MarkdownThemeRenderContext.partials.

Before

// dist/theme/theme-render-context.d.ts

    /**
     * The theme's global partials context.
     */
    partials: any;

After

// dist/theme/theme-render-context.d.ts

    /**
     * The theme's global partials context.
     */
    partials: {
        breadcrumbs: (page: MarkdownPageEvent<import("typedoc").DeclarationReflection | import("typedoc").ProjectReflection>) => string;
        commentParts: (parts: import("typedoc").CommentDisplayPart[]) => string;
        ...
vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
typedoc-plugin-markdown ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 10:43am