import * as Promise from 'bluebird' ; import { Observable } from 'rxjs' ; import { Example } from '../models' ; /**
 * Example Service Interface
 */ interface IExample { all ( ) : Promise < Example [ ] > ; byId ( id ) : Promise < Example > ; byPostsByID ( id ) : Observable < any > ; create ( name ) : Promise < Example > ; sampleAPI ( ) : Observable < Example [ ] > ; } export default IExample ;