TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_jsdocTypeParameter.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

19 lines
285 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowJs: true
// @Filename: /a.js
/////**
//// * @type {<T>() => void}
//// */
////export const x = 0;
verify.codeFix({
description: "Remove type parameters",
newFileContent:
`/**
* @type {() => void}
*/
export const x = 0;`,
});