fix(http): change http interfaces to types
Types were previously not handled correctly by the type definition generation process, so a couple of things in http had to be changed to interfaces. This issue has been fixed, so now they're types again. Closes #4024
This commit is contained in:
parent
0366f317af
commit
3d6e3c2551
@ -33,9 +33,7 @@ export class Connection {
|
|||||||
* Interface for options to construct a Request, based on
|
* Interface for options to construct a Request, based on
|
||||||
* [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec.
|
* [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec.
|
||||||
*/
|
*/
|
||||||
// TODO(jeffbcross): Change to type declaration when #3828 is fixed
|
export type RequestOptionsArgs = {
|
||||||
// https://github.com/angular/angular/issues/3828
|
|
||||||
export interface RequestOptionsArgs {
|
|
||||||
url?: string;
|
url?: string;
|
||||||
method?: RequestMethods;
|
method?: RequestMethods;
|
||||||
search?: string | URLSearchParams;
|
search?: string | URLSearchParams;
|
||||||
@ -48,7 +46,7 @@ export interface RequestOptionsArgs {
|
|||||||
* Interface for options to construct a Response, based on
|
* Interface for options to construct a Response, based on
|
||||||
* [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec.
|
* [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec.
|
||||||
*/
|
*/
|
||||||
export interface ResponseOptionsArgs {
|
export type ResponseOptionsArgs = {
|
||||||
// TODO: Support Blob, ArrayBuffer, JSON
|
// TODO: Support Blob, ArrayBuffer, JSON
|
||||||
body?: string | Object | FormData;
|
body?: string | Object | FormData;
|
||||||
status?: number;
|
status?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user