镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Support multiple @template tags in JSDoc #23908

Description

/**
 * @template {T}
 * @template {U}
 * @typedef Morphism {(x: T) => U}
 */

Currently we refuse to accept the second @template:

[js] 'template' tag already specified.

But Closure does accept this syntax.

Activity

  1. mhegazy commented on May 4, 2018

    @mhegazy
    Contributor

    We do not support this for functions either.

  2. locked and limited conversation to collaborators on Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions