Nathan Shively-Sanders
5c2eeb20b1
Destructuring declaration prefers type annotation type ( #25282 )
...
* Destructuring declaration prefers type annotation type
Previously, getTypeForBindingElement would always union the declarations type and
the type of the default initializer. Now, if the declaration has a type
annotation, it does not union with the initializer type. The type
annotation's type is the one used.
* Small cleanup in parentDeclarationHasTypeAnnotation
* Refactoring based on PR comments
* Combine getCombined*Flags into a single helper function
Retain the individual functions since they are used a lot.
* Remove unneeded temp
2018-06-28 10:41:38 -07:00
..
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-17 15:20:48 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-11 15:59:19 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-04-17 11:21:11 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-26 14:03:18 -07:00
2018-04-06 16:16:34 -07:00
2018-04-17 11:21:11 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-06-28 10:41:38 -07:00
2017-11-13 15:02:28 -08:00
2017-11-15 10:47:09 -08:00
2017-11-10 14:20:55 -08:00
2017-11-13 15:02:28 -08:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-05-15 11:15:08 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-12 14:09:07 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00
2018-04-06 16:16:34 -07:00