mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
microsoft-typescript/type-operator-spacing
This commit is contained in:
parent
012c76e897
commit
65ddc1fef2
@ -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",
|
||||
|
||||
4
src/lib/es2019.array.d.ts
vendored
4
src/lib/es2019.array.d.ts
vendored
@ -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[]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user