Skip to content

Fails to show optional interface methods as such #2995

Description

@vitaly-t

I have an interface like this one:

export interface IDefect {
    transform(value: any, args: string[]): any;

    getDefaultFilter?(filter: string, args: string[]): any;

    filters?: { [name: string]: IFilter };
}

In TypeDoc it comes up as follows:

Image

Above, optional property filters is shown correctly, as optional, with ?, but for optional method getDefaultFilter symbol ? is missing.

It is only in details the method gets OPTIONAL label attached. But why ? is removed from methods in the interface, while preserved for properties? This is inconsistent, and looks like a bug.


Used TypeDoc version: 0.28.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions