UNPKG

654 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const http_constants_1 = require("./http.constants");
4function createHttpOptionsProvider(httpOption) {
5 return {
6 provide: http_constants_1.HTTP_OPTION,
7 useValue: httpOption,
8 };
9}
10exports.createHttpOptionsProvider = createHttpOptionsProvider;
11function createHttpAsyncOptionsProvider(options) {
12 return {
13 provide: http_constants_1.HTTP_OPTION,
14 useFactory: options.useFactory,
15 inject: options.inject || [],
16 };
17}
18exports.createHttpAsyncOptionsProvider = createHttpAsyncOptionsProvider;
19//# sourceMappingURL=http.provider.js.map
\No newline at end of file