import Collections from 'common/database/collections' ; import DBProvider , { QuerySnapshotCallback , UnsubscribeSnapshot , querySnapshot , } from './dbProvider' ; import { StaticTipItemIded } from 'common/models/StaticTips' ; export default class StaticTipsRepo { constructor ( readonly db ) { } public get collection ( ) { return this . db . collection ( Collections . Tips ) ; } get ( ) ; get ( cb ) ; get ( cb ? ) { const query = this . collection ; return querySnapshot ( this . db , query , cb ) ; } }