Skip to content

check‑tag‑names: Support @template #165

@ExE-Boss

Description

@ExE-Boss

The @template tag is used by the Closure compiler and TypeScript for generics:

/**
 * @template T
 * @param {T} x
 * @return {T}
 */
function identity(x) {
	return x;
}

is equivalent to:

function identity<T>(x: T) {
	return x;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions