GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeScript config no longer validates after upgrading to typedoc 0.28.0 · Issue #2901 · TypeStrong/typedoc

TypeScript config no longer validates after upgrading to typedoc 0.28.0 #2901

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
TypeScript config no longer validates after upgrading to typedoc 0.28.0#2901
Bug
Copy link
Labels
no bugThis is expected behaviorThis is expected behavior
Milestone
v0.28.1

Description

@kaiyoma
kaiyoma
opened on Mar 17, 2025
Issue body actions

Search terms

TypeScript

Expected Behavior

Config should continue to validate.

Actual Behavior

typedoc.config.js:4:7 - error TS2322: Type '{ classPropertiesFormat: "table"; entryFileName: string; entryPoints: string[]; entryPointStrategy: "packages"; enumMembersFormat: "table"; hideBreadcrumbs: true; hidePageHeader: true; ignoredHighlightLanguages: string[]; ... 10 more ...; useHTMLEncodedBrackets: true; }' is not assignable to type 'TypeDocOptions & PluginOptions'.
  Type '{ classPropertiesFormat: "table"; entryFileName: string; entryPoints: string[]; entryPointStrategy: "packages"; enumMembersFormat: "table"; hideBreadcrumbs: true; hidePageHeader: true; ignoredHighlightLanguages: string[]; ... 10 more ...; useHTMLEncodedBrackets: true; }' is missing the following properties from type 'TypeDocOptions': options, tsconfig, compilerOptions, lang, and 97 more.

4 const config = {
        ~~~~~~


Found 1 error in typedoc.config.js:4

Steps to reproduce the bug

Write a config and validate it against TypeDocOptions.

Environment

  • Typedoc version: 0.28.0
  • TypeScript version: 5.8.2
  • Node.js version: 22.14.0

Activity

  1. Gerrit0 commented on Mar 17, 2025

    @Gerrit0
    Gerrit0
    on Mar 17, 2025
    Collaborator
    More actions

    It sounds like you have declared the type to be TypeDocOptions, where you want Partial<TypeDocOptions>, this is a mistake in your config file, not a problem with typedoc.

  2. Gerrit0
    added
    no bugThis is expected behaviorThis is expected behavior
    on Mar 17, 2025
  3. kaiyoma commented on Mar 17, 2025

    @kaiyoma
    kaiyoma
    on Mar 17, 2025
    Author
    More actions

    Did this behavior change? This wasn't the case in the previous version. Shouldn't TypeDocOptions already be declaring all properties as optional? That seems more user-friendly than forcing everyone to add Partial to their configs.

  4. Gerrit0 commented on Mar 17, 2025

    @Gerrit0
    Gerrit0
    on Mar 17, 2025
    Collaborator
    More actions

    This behavior has not changed. I suspect your PluginOptions interface might have resolved to any before, resulting in the entire type being any.

    As for everything being optional, it looks like that's doable, most places in TypeDoc's source already wrap it in Partial, PR welcome

  5. Gerrit0
    closed this as completedin 00fb078on Mar 18, 2025
  6. Gerrit0
    added this to the v0.28.1 milestone on Mar 18, 2025
  7. pull
    added a commit that references this issue on Mar 18, 2025

    Mark TypeDocOptions members as optional

    This issue will close once commit 00fb078 is merged into the 'master' branch.
    00fb078
  8. kaiyoma commented on Mar 18, 2025

    @kaiyoma
    kaiyoma
    on Mar 18, 2025
    Author
    More actions

    Thanks for the fix. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    no bugThis is expected behaviorThis is expected behavior

    Type

    Bug

    Projects

    No projects

      Milestone

      • v0.28.1

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.