TypeScript Version: 3.1.0-dev.20180824
Search Terms: tuple generic space
Code
Format this:
type Foo<
T1 extends any[],
T2 extends any[] = []
> = T1 & T2;
Expected behavior:
Either no change or the following, although I would prefer no indentation on the last line to be consistent with curly braces and object literals:
type Foo<
T1 extends any[],
T2 extends any[] = []
> = T1 & T2;
Actual behavior:
type Foo<
T1 extends any[],
T2 extends any[]=[] // <= TSLint complains about missing whitespace
> = T1 & T2;
Related Issues: none found
TypeScript Version: 3.1.0-dev.20180824
Search Terms: tuple generic space
Code
Format this:
Expected behavior:
Either no change or the following, although I would prefer no indentation on the last line to be consistent with curly braces and object literals:
Actual behavior:
Related Issues: none found