From 8dcf55effb8069668431e1276d5f20f57b3dfef2 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 2 Sep 2020 00:04:28 -0700 Subject: [PATCH] Add missing `httpConfig` property in `setFullRequestInterceptor` callback return type. --- types/restangular/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/restangular/index.d.ts b/types/restangular/index.d.ts index e0a77694b2..01a1e039d8 100644 --- a/types/restangular/index.d.ts +++ b/types/restangular/index.d.ts @@ -52,7 +52,7 @@ declare namespace restangular { addResponseInterceptor(responseInterceptor: (data: any, operation: string, what: string, url: string, response: IResponse, deferred: angular.IDeferred) => any): IProvider; setRequestInterceptor(requestInterceptor: (element: any, operation: string, what: string, url: string) => any): IProvider; addRequestInterceptor(requestInterceptor: (element: any, operation: string, what: string, url: string) => any): IProvider; - setFullRequestInterceptor(fullRequestInterceptor: (element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: angular.IRequestShortcutConfig) => {element: any; headers: any; params: any}): IProvider; + setFullRequestInterceptor(fullRequestInterceptor: (element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: angular.IRequestShortcutConfig) => {headers: any; params: any; element: any; httpConfig: angular.IRequestShortcutConfig}}): IProvider; addFullRequestInterceptor(requestInterceptor: (element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: angular.IRequestShortcutConfig) => {headers: any; params: any; element: any; httpConfig: angular.IRequestShortcutConfig}): IProvider; setErrorInterceptor(errorInterceptor: (response: IResponse, deferred: angular.IDeferred, responseHandler: (response: restangular.IResponse) => any) => any): IProvider; setRestangularFields(fields: {[fieldName: string]: string}): IProvider;