Add a fourslash completions test related to JSDoc @template on prototype method (#55513)

This commit is contained in:
Mateusz Burzyński
2023-08-26 17:57:45 +02:00
committed by GitHub
parent 753c463821
commit 5b9547b1ba

View File

@@ -0,0 +1,18 @@
/// <reference path="fourslash.ts" />
// @checkJs: true
// @filename: index.js
//// https://github.com/microsoft/TypeScript/issues/11492
//// /** @constructor */
//// function Foo() {}
//// /**
//// * @template T
//// * @param {T} bar
//// * @returns {T}
//// */
//// Foo.prototype.foo = function (bar) {};
//// new Foo().foo({ id: 1234 })./**/
verify.completions({ marker: "", exact: ["id"] });