angular-cn/packages/http
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
..
src fix(http): move destructuring inside {Request,Response}Options ctor 2017-06-09 14:34:39 -07:00
test ci: update build to use TypeScript 2.3.2 (#16707) 2017-05-16 13:29:38 -07:00
testing build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
index.ts
package.json build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
public_api.ts
rollup.config.js build: import tslib rather than output TS helpers (#16901) 2017-05-23 14:01:39 -06:00
tsconfig-build.json fix: add typescript 2.3.2 typings test (#16738) 2017-05-15 13:10:43 -07:00