While looking at an instability on the React codebase ( https://github.com/sebmarkbage/react/commit/ba1299acc2c3b66ec1e093c201bcede421a8caa0#diff-2550aa3d377452ae29361f5e53c51c10 ), I realized that we don't let them break which makes the code look weird. So I added the ability for them to break :)
11 lines
272 B
JavaScript
11 lines
272 B
JavaScript
var X = {
|
|
perform: function<
|
|
A, B, C, D, E, F, G,
|
|
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
|
|
>(
|
|
method: T, scope: any,
|
|
a: A, b: B, c: C, d: D, e: E, f: F,
|
|
): G {
|
|
}
|
|
}
|