ReSharper 2017.2 Help

TypeScript - Spaces

Type parameters and arguments

Before brackets

Property names:

[resharper_]js_space_before_type_parameters_brackets, [resharper_]space_before_type_parameters_brackets

Possible values:

true | false

Examples:

true
class·<T1T2{ } var·a<numberstring>;
false
class·C<T1T2{ } var·aC<numberstring>;

Within brackets

Property names:

[resharper_]js_space_within_type_parameters_brackets, [resharper_]space_within_type_parameters_brackets

Possible values:

true | false

Examples:

true
class·CT1T2·{ } var·aCnumberstring·>;
false
class·C<T1T2{ } var·aC<numberstring>;

Type annotations

Before ':'

Property names:

[resharper_]js_space_before_colon_in_type_annotation, [resharper_]space_before_colon_in_type_annotation

Possible values:

true | false

Examples:

true
var·SomeType;
false
var·aSomeType;

After ':'

Property names:

[resharper_]js_space_after_colon_in_type_annotation, [resharper_]space_after_colon_in_type_annotation

Possible values:

true | false

Examples:

true
var·aSomeType;
false
var·a:SomeType;

Union and Intersection Types

Around '|' or '&' in type usage

Property names:

[resharper_]js_space_around_pipe_or_amper_in_type_usage, [resharper_]space_around_pipe_or_amper_in_type_usage

Possible values:

true | false

Examples:

true
var·aSomeType·OtherType;
false
var·aSomeType|OtherType;
Last modified: 20 October 2017