Skip to content

Support compound type descriptions #443

Description

@olpa

If I annotate a variable with type Map<Foo, number>, I want to see:

  • the complete type annotation,
  • the substring Foo be a link to Foo type definition.

At the moment, in browser I get only the string Map, without rest.

Similarly, I'd like to have links in the type annotation (Foo, Foo) => Foo.

/**
 * Some class description
 * @class Foo
 */
class Foo {

  /**
   * Some method description
   * @method bar
   * @param {Map<Foo, boolean>} baz1
   *   Want see type `Map_Foo__boolean_`
   * @param {Map<Foo,boolean>} baz2
   *   Want see type `Map_Foo_boolean_`
   * @param {(Foo, Foo) => Foo} baz3
   *   Want see type `_Foo__Foo____Foo`
   * @return {Foo[]}
   *   Array of `Foo`s
   */
  bar(baz1, baz2, baz3) {
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions