Skip to content
angelozerr edited this page Dec 22, 2016 · 1 revision

Code fixes

Since TypeScript 2.1.4, TypeScript provides the code fixes feature available with the getCodeFixes tsserver command. Each TypeScript version provides new available code fixes.

Here a list of available code fixes according the TypeScript version.

TypeScript 2.1.4

Super fixes

Import

TypeScript 2.2.x

TypeScript 2.2.x is not released for the moment, you can install with npm install typescript@next and configure TypeScript Runtime

Import fixes

Import

Unused Identifiers fixes

To enable those code fixes, you need to configure your tsconfig.json like this:

{
	"compilerOptions": {
		"noUnusedLocals": true,
		"noUnusedParameters": true
	}
}

Import

See this Unused identifiers compiler code PR to see samples.

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy