d40d54984e
* Support deleting all unused type parameters in a list, and deleting @template tag * Support type parameter in 'infer'
19 lines
285 B
TypeScript
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;`,
|
|
});
|