ngrx / core

Core functionality for the ngrx platform
MIT License
72 stars 25 forks source link

fix(type): reverse the overload sequence of ComposeSignature #18

Open e-cloud opened 7 years ago

e-cloud commented 7 years ago

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.