core icon indicating copy to clipboard operation
core copied to clipboard

fix(type): reverse the overload sequence of ComposeSignature

Open e-cloud opened this issue 8 years ago • 0 comments

Without this fix, it will get typescript compiler error with typescript v2.4.1 when compose has more than three args passed in.

As in https://www.typescriptlang.org/docs/handbook/functions.html, the office example also places the signature with most args at the front.

Here we follow the example and make compiler find the best match.

e-cloud avatar Jul 10 '17 07:07 e-cloud