(options: Partial<ProviderOpts> = {})
| 40 | * @decorator |
| 41 | */ |
| 42 | export function Injectable(options: Partial<ProviderOpts> = {}): ClassDecorator { |
| 43 | return (target: any) => { |
| 44 | const opts = { |
| 45 | ...options, |
| 46 | ...(options.token ? {useClass: target} : {token: target}) |
| 47 | }; |
| 48 | injectable(opts.token, opts); |
| 49 | }; |
| 50 | } |
no outgoing calls
no test coverage detected