microsoft-typescript/type-operator-spacing

This commit is contained in:
Alexander T 2019-06-14 11:48:52 +03:00
parent 012c76e897
commit 65ddc1fef2
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@
"microsoft-typescript/object-literal-surrounding-space": "error",
"microsoft-typescript/no-type-assertion-whitespace": "error",
"microsoft-typescript/type-operator-spacing": "off",
"microsoft-typescript/type-operator-spacing": "error",
"microsoft-typescript/only-arrow-functions": "off",
"microsoft-typescript/no-double-space": "off",
"microsoft-typescript/boolean-trivia": "error",

View File

@ -11,7 +11,7 @@ interface ReadonlyArray<T> {
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray<U>,
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
@ -125,7 +125,7 @@ interface Array<T> {
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray<U>,
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]