(input: Subscribable<T>)
| 41 | // only expose methods from the Subscribable interface, to ensure that |
| 42 | // the implementation does not rely on other methods: |
| 43 | const wrapSubscribable = <T>(input: Subscribable<T>): Subscribable<T> => ({ |
| 44 | subscribe(...args: any): Unsubscribable { |
| 45 | const subscription = input.subscribe.apply(input, args); |
| 46 | return { |
| 47 | unsubscribe() { |
| 48 | subscription.unsubscribe(); |
| 49 | }, |
| 50 | }; |
| 51 | }, |
| 52 | }); |
| 53 | |
| 54 | let emitter: EventEmitter<any>; |
| 55 | let subscribable: Subscribable<any>; |
no outgoing calls
no test coverage detected
searching dependent graphs…