TypeScript/tests/cases/fourslash/jsdocReturnsTag.ts
Andy d40d54984e
Support deleting all unused type parameters in a list, and deleting @template tag (#25748)
* Support deleting all unused type parameters in a list, and deleting @template tag

* Support type parameter in 'infer'
2018-07-27 11:55:31 -07:00

26 lines
627 B
TypeScript

///<reference path="fourslash.ts" />
// @allowJs: true
// @Filename: dummy.js
/////**
//// * Find an item
//// * @template T
//// * @param {T[]} l
//// * @param {T} x
//// * @returns {?T} The names of the found item(s).
//// */
////function find(l, x) {
////}
////find(''/**/);
verify.signatureHelp({
marker: "",
text: "find(l: any[], x: any): any",
docComment: "Find an item",
tags: [
{ name: "template", text: "T" },
{ name: "param", text: "l" },
{ name: "param", text: "x" },
{ name: "returns", text: "The names of the found item(s)." },
],
});