mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Add a fourslash completions test related to JSDoc @template on prototype method (#55513)
This commit is contained in:
committed by
GitHub
parent
753c463821
commit
5b9547b1ba
18
tests/cases/fourslash/jsdocTemplatePrototypeCompletions.ts
Normal file
18
tests/cases/fourslash/jsdocTemplatePrototypeCompletions.ts
Normal 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"] });
|
||||
Reference in New Issue
Block a user