Files
test-repo/tests/format/flow/assignments/issue-10846.js
T
Sosuke Suzuki 84f72be9dc Avoid to break after assignment for call expression that has complex type parameters (#10949)
* Avoid break-after-operator when call expr has complex type params

* Add tests

* Add changelog

* Fix issue number

* Update snapshpts

* Address review

* Support Flow

* Rename parameters => arguments

* Remove isCallExpression
2021-05-28 10:40:33 +09:00

39 lines
729 B
JavaScript

const foo1 =
call<{
prop1: string;
prop2: string;
prop3: string;
}>();
export const CallRecorderContext1 =
createContext<{
deleteRecording: (id: string) => void;
deleteAll: () => void;
} | null>(null);
export const CallRecorderContext2 = createContext<{
deleteRecording: (id: string) => void;
deleteAll: () => void;
} | null>(null, "useless");
const foo2 =
call<Foooooo, Foooooo, Foooooo, Foooooo, Foooooo, Foooooo, Foooooo>();
const foo3 =
call<
| Foooooooooooo
| Foooooooooooo
| Foooooooooooo
| Foooooooooooo
| Foooooooooooo
>();
const foo4 =
call<
Foooooooooooo &
Foooooooooooo &
Foooooooooooo &
Foooooooooooo &
Foooooooooooo
>();