Argument of type \'{ query: { limitTolast: number; orderByKey: boolean; }; }\' is not assignable to parameter of type \'QueryFn\'.Object literal may only specify known propertie
due to update on Angular Fire, replace FirebaseListObservable to AngularFireList and make sure you return firebase.database.Query like this
getMessages(): AngularFireList { return this.db.list('messages', ref => { return ref.limitToLast(25).orderByKey(); }); }