Skip to content

Private static getters being displayed with excludePrivates: true #1516

@zajrik

Description

@zajrik

Search terms

Expected Behavior

I expected the private static getter to not be output in the documentation because I have excludePrivates: true in my config
image

Actual Behavior

The private static getter is being output in the documentation
image

Steps to reproduce the bug

Generate documentation for the following code with excludePrivates: true in the config:

export class Test
{
	private static get _test(): string
	{
		return 'test';
	}

	public test(): string
	{
		return Test._test;
	}
}

Environment

  • Typedoc version: 0.20.23
  • TypeScript version: 4.1.3
  • Node.js version: 14.15.3
  • OS: Ubuntu 20.04.2 LTS on Windows 10 x86_64

I'm just using /** @internal */ as a workaround for the time being but hopefully this can be resolved. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions