Skip to content

Exclude pattern with negation prevents doc generation for named export #2937

Closed
@softdays

Description

@softdays

Search terms

exclude, glob negation, named export

Expected Behavior

Using exclude option involving a glob negation pattern should generate documentation for named exports.

Actual Behavior

Using this script :

typedoc --html api-doc --entryPoints src/public-api.ts --exclude '!**/foo.ts'"

and this public-api.ts entry point:

export * from './bar';
export * from './baz';
export { Foo } from './foo';

Documentation not generated for Foo

Steps to reproduce the bug

Environment

  • Typedoc version: 0.28.1
  • TypeScript version: 5.7.2
  • Node.js version: v20.19.0
  • OS: WebContainers (Stackblitz)

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