mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add a fourslash completions test related to JSDoc @template on prototype method (#55513)
This commit is contained in:
1 parent
753c463821
commit
5b9547b1ba
1 file changed
+18
@@ -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"] });
|
||||
Reference in new issue
Block a user