Code coverage report for src/Observer.ts

Statements: 50% (1 / 2)      Branches: 100% (0 / 0)      Functions: 33.33% (1 / 3)      Lines: 50% (1 / 2)      Ignored: none     

All files » src/ » Observer.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14              1            
export interface Observer<T> {
  isUnsubscribed: boolean;
  next(value: T): void;
  error(error: any): void;
  complete(): void;
}
 
export const empty: Observer<any> = {
  isUnsubscribed: true,
  next(value: any): void { /* noop */},
  error(err: any): void { throw err; },
  complete(): void { /*noop*/ }
};