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