import { Round , RoundModel } from 'shared/model/round' ; export type RawRound = { [ key ] : any ; } ; export interface IRoundRepository { getCurrentRound ( ) : Round ; getPrevRound ( ) : Round ; } export interface IRoundPGRepository { serialize ( round ) : RawRound ; deserialize ( rawRound ) : Round ; getByHeight ( height ) : Promise < Round > ; getMany ( limit , offset ) : Promise < Array < Round > > ; saveOrUpdate ( round ) : Promise < void > ; }