From 65ddc1fef2722aafd320fa80cdb3abe9fef5b42e Mon Sep 17 00:00:00 2001 From: Alexander T Date: Fri, 14 Jun 2019 11:48:52 +0300 Subject: [PATCH] microsoft-typescript/type-operator-spacing --- .eslintrc | 2 +- src/lib/es2019.array.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index b59cdc47dca..f873c3c7619 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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", diff --git a/src/lib/es2019.array.d.ts b/src/lib/es2019.array.d.ts index 33bee0c205e..07fc76a9c77 100644 --- a/src/lib/es2019.array.d.ts +++ b/src/lib/es2019.array.d.ts @@ -11,7 +11,7 @@ interface ReadonlyArray { * thisArg is omitted, undefined is used as the this value. */ flatMap ( - callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray, + callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray, thisArg?: This ): U[] @@ -125,7 +125,7 @@ interface Array { * thisArg is omitted, undefined is used as the this value. */ flatMap ( - callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray, + callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray, thisArg?: This ): U[]