libs/contact/driver/src/interfaces/contact-service.interface.ts
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>;
}