Skip to content

Nested identifiers don't work with Type, only Interface #4

@Shrugsy

Description

@Shrugsy

Description

Nested identifiers will work for an Interface, but not a Type. The plugin is unable to locate the nested properties for a Type.

Example

export interface TestInterface {
  /**
   * A summary for foo
   */
  foo: () => void;
}

export type TestType = {
  /**
   * A summary for foo
   */
  foo: () => void;
};

Working link

[summary](docblock://test.ts?token=TestInterface.foo]

Broken link

[summary](docblock://test.ts?token=TestType.foo]

This would show:

could not find overload 0 for TestType.foo in test.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions