@@ -23,27 +23,7 @@ export function defaultHttpResponseTransform(data: any, headers: any): any;
2323 */
2424export function HttpProvider ( ) : void ;
2525export class HttpProvider {
26- defaults : {
27- transformResponse : ( typeof defaultHttpResponseTransform ) [ ] ;
28- transformRequest : ( ( data : any ) => any ) [ ] ;
29- headers : {
30- common : {
31- Accept : string ;
32- } ;
33- post : {
34- "Content-Type" : string ;
35- } ;
36- put : {
37- "Content-Type" : string ;
38- } ;
39- patch : {
40- "Content-Type" : string ;
41- } ;
42- } ;
43- xsrfCookieName : string ;
44- xsrfHeaderName : string ;
45- paramSerializer : string ;
46- } ;
26+ defaults : import ( "./interface.ts" ) . HttpProviderDefaults ;
4727 /**
4828 * Configure $http service to combine processing of multiple http responses received at around
4929 * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in
@@ -68,8 +48,11 @@ export class HttpProvider {
6848 * array, on request, but reverse order, on response.
6949 *
7050 * {@link ng.$http#interceptors Interceptors detailed info}
51+ * @type {Array<string | ng.Injectable<import("./interface.ts").HttpInterceptorFactory>> }
7152 */
72- interceptors : any [ ] ;
53+ interceptors : Array <
54+ string | ng . Injectable < import ( "./interface.ts" ) . HttpInterceptorFactory >
55+ > ;
7356 /**
7457 * Array containing URLs whose origins are trusted to receive the XSRF token. See the
7558 * {@link ng.$http#security-considerations Security Considerations} sections for more details on
@@ -124,27 +107,7 @@ export class HttpProvider {
124107 *
125108 * See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
126109 */
127- defaults : {
128- transformResponse : ( typeof defaultHttpResponseTransform ) [ ] ;
129- transformRequest : ( ( data : any ) => any ) [ ] ;
130- headers : {
131- common : {
132- Accept : string ;
133- } ;
134- post : {
135- "Content-Type" : string ;
136- } ;
137- put : {
138- "Content-Type" : string ;
139- } ;
140- patch : {
141- "Content-Type" : string ;
142- } ;
143- } ;
144- xsrfCookieName : string ;
145- xsrfHeaderName : string ;
146- paramSerializer : string ;
147- } ;
110+ defaults : import ( "./interface.ts" ) . HttpProviderDefaults ;
148111 } )
149112 ) [ ] ;
150113}
0 commit comments