Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
provide: Http, useFactory: (backend, options) => {
return new Http(backend, options);
}, deps: [MockBackend, RequestOptions]
}
export function httpFactory(backend, options): Http {
return new Http(backend, options);
}
useFactory: (mockBackend, options) => {
return new Http(mockBackend, options);
},
deps: [MockBackend, BaseRequestOptions]
useFactory: (backend: MockBackend, defaultOptions: BaseRequestOptions) => {
return new Http(backend, defaultOptions);
},
deps: [MockBackend, BaseRequestOptions],
useFactory: (mockBackend: MockBackend, defaultOptions: RequestOptions) => {
return new Http(mockBackend, defaultOptions);
},
useClass: Http,
useFactory: function(backend, defaultOptions) {
return new Http(backend, defaultOptions);
},
deps: [MockBackend, BaseRequestOptions]
provide: Http, useFactory: (backend, options) => {
return new Http(backend, options);
}, deps: [MockBackend, RequestOptions]
}
useFactory: (backend: MockBackend, options: BaseRequestOptions) => {
return new Http(backend, options);
}
};
useFactory: (backend: MockBackend, options: BaseRequestOptions) => {
return new Http(backend, options);
},
deps: [MockBackend, BaseRequestOptions]
useFactory: (backendInstance: MockBackend, defaultOptions: BaseRequestOptions) => {
return new Http(backendInstance, defaultOptions);
}
},