* Register an interceptor * @param interceptor - An interceptor function or provider class * @param nameOrOptions - Binding name or options
(
interceptor: Interceptor | Constructor<Provider<Interceptor>>,
nameOrOptions?: string | InterceptorBindingOptions,
)
| 573 | * @param nameOrOptions - Binding name or options |
| 574 | */ |
| 575 | public interceptor( |
| 576 | interceptor: Interceptor | Constructor<Provider<Interceptor>>, |
| 577 | nameOrOptions?: string | InterceptorBindingOptions, |
| 578 | ) { |
| 579 | const options = toOptions(nameOrOptions); |
| 580 | return registerInterceptor(this, interceptor, options); |
| 581 | } |
| 582 | |
| 583 | /** |
| 584 | * Set up signals that are captured to shutdown the application |
no test coverage detected