You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
TypeScript 2.2 will have Object and Intersection types, microsoft/TypeScript#13604 which should drastically improve our inference through mixins and this.
We should look to see what improvements this can bring in terms of typing.
The code for this is in master so available under typescript@next
From what I've gathered, I'm not sure this can be directly leveraged to improve typing in compose. Having classes and interface be able to derive from objects can be handy for certain mixin patterns, but I'm not seeing a way to fit it into compose. The main benefit for compose I can see from these changes is the fact that the this type of an intersection is now the intersection but this is more of an indirect benefit to users of the library. For example, a previous iteration of the stores API had something like this
Activity
maier49 commentedon Jan 26, 2017
From what I've gathered, I'm not sure this can be directly leveraged to improve typing in compose. Having classes and interface be able to derive from objects can be handy for certain mixin patterns, but I'm not seeing a way to fit it into compose. The main benefit for compose I can see from these changes is the fact that the
thistype of an intersection is now the intersection but this is more of an indirect benefit to users of the library. For example, a previous iteration of the stores API had something like thisTypes like this would work a lot better now because
QueryMixin & Store & ...would properly return itself from a query.agubler commentedon Feb 15, 2017
@matt-gadd I think we can close this now after the move to TS2.2?