(
toExport: Provider | string | symbol | DynamicModule,
)
| 455 | } |
| 456 | |
| 457 | public addExportedProviderOrModule( |
| 458 | toExport: Provider | string | symbol | DynamicModule, |
| 459 | ) { |
| 460 | const addExportedUnit = (token: InjectionToken) => |
| 461 | this._exports.add(this.validateExportedProvider(token)); |
| 462 | |
| 463 | if (this.isCustomProvider(toExport as any)) { |
| 464 | return this.addCustomExportedProvider(toExport as any); |
| 465 | } else if (isString(toExport) || isSymbol(toExport)) { |
| 466 | return addExportedUnit(toExport); |
| 467 | } else if (this.isDynamicModule(toExport)) { |
| 468 | const { module: moduleClassRef } = toExport; |
| 469 | return addExportedUnit(moduleClassRef); |
| 470 | } |
| 471 | addExportedUnit(toExport as Type<any>); |
| 472 | } |
| 473 | |
| 474 | public addCustomExportedProvider( |
| 475 | provider: |
no test coverage detected