angular-docs-cn/tools/public_api_guard
Alex Rickabaugh c2d31fb01e fix(http): move destructuring inside {Request,Response}Options ctor
Previously the RequestOptions/ResponseOptions classes had constructors
with a destructured argument hash (represented by the
{Request,Response}OptionsArgs type). This type consists entirely of
optional members.

This produces a .d.ts file which includes the constructor declaration:

constructor({param, otherParam}?: OptionsArgs);

However, this declaration doesn't type-check properly. TypeScript
determines the actual type of the hash parameter to be OptionsArgs | undefined,
which it then concludes does not have a `param` or `otherParam` member.

This is a bug in TypeScript ( https://github.com/microsoft/typescript/issues/10078 ).
As a workaround, destructuring is moved inside the method, where it does not produce
broken artifacts in the .d.ts.

Fixes #16663.
2017-06-09 14:34:39 -07:00
..
animations docs(animations): add documentation for new animation features 2017-05-19 12:52:04 -07:00
common fix(common): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
compiler build: fix paths to typings files so tsickle resolves imports correctly 2017-03-16 17:34:29 -07:00
core feat(core): update zone.js to 0.8.10 and expose the flush method (#16860) 2017-05-22 12:19:21 -06:00
forms fix: public API golden files (#16414) 2017-04-28 09:48:15 -07:00
http fix(http): move destructuring inside {Request,Response}Options ctor 2017-06-09 14:34:39 -07:00
platform-browser feat(animations): introduce a wave of new animation features 2017-05-16 17:39:57 -07:00
platform-browser-dynamic fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-server fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-webworker fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-webworker-dynamic fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
router fix(router): opening links in new window 2017-06-02 17:32:12 -04:00
upgrade fix(upgrade): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00