angular-cn/tools
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
..
@angular/tsc-wrapped docs(packaging): update homepage in @angular/tsc-wrapped (#17352) 2017-06-09 13:35:23 -07:00
build chore(build): remove unused build/util 2016-11-07 10:32:00 -08:00
cjs-jasmine refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
code.angularjs.org build: use subshells when changing directories 2017-05-12 12:19:51 -07:00
gulp-tasks build: do not create the bundles when updating the public API 2017-05-17 08:34:50 -07:00
karma refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
npm chore(npm): clean up clean-shrinkwrap script 2016-10-31 11:26:59 -07:00
public_api_guard fix(http): move destructuring inside {Request,Response}Options ctor 2017-06-09 14:34:39 -07:00
travis refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tree-shaking-test refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
tsc-watch refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
tslint fix: build and test fixes for TS 2.1 (#13294) 2017-02-08 11:32:40 -06:00
validate-commit-message fix: validation messages support animations scope 2017-02-10 19:05:00 -06:00
check-environment.js build: allow check-environment.js to be run directly 2017-03-05 08:41:26 -08:00
chromedriverpatch.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json build(aio): move doc-gen stuff from angular.io (#14097) 2017-01-26 23:46:59 -08:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00