import { Observable } from 'rxjs' ; import { Model } from './model' ; export interface ICrud < T extends Model > { get ( id ) : Observable < T > ; list ( ) : Observable < T [ ] > ; createOrUpdate ( item ) : Promise < T > ; delete ( id ) : Promise < void > ; }