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.