graycoreio/daffodil

View on GitHub
libs/contact/driver/src/interfaces/contact-service.interface.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Observable } from 'rxjs';

import { createSingletonInjectionToken } from '@daffodil/core';

export const {
  token: DaffContactDriver,
  /**
   * Provider function for {@link DaffContactDriver}.
   */
  provider: provideDaffContactDriver,
} = createSingletonInjectionToken<DaffContactServiceInterface<any, any>>('DaffContactDriver');
export interface DaffContactServiceInterface<T, V> {
  send(payload: T): Observable<V>;
}