Skip to content

TypeDocOptions seems to be missing Partial for packageOptions #2878

Closed
@kaiyoma

Description

@kaiyoma

Search terms

TypeScript, TypeDocOptions, packageOptions

Expected Behavior

packageOptions should be defined as Partial.

Actual Behavior

error TS2740: Type '{ entryPoints: string[]; includeVersion: true; }' is missing the following properties from type 'TypeDocOptions': options, tsconfig, compilerOptions, plugin, and 100 more.

Steps to reproduce the bug

const config: TypeDocOptions = {
  entryPoints: [],
  entryPointStrategy: 'packages',
  packageOptions: {
    entryPoints: ['src/index.ts'],
    includeVersion: true,
  },
};

Environment

  • Typedoc version: 0.27.9
  • TypeScript version: 5.7.3
  • Node.js version: 22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions