import { Chaining } from './' ; export type PaginateType = 'paginate' ; export interface Paginate < KeySchema > { limit ? : number ; lastKey ? : KeySchema ; } export class CommonPaginate < ChainingKind , KeySchema > extends Chaining < ChainingKind | PaginateType > { private _paginate ? : Paginate < KeySchema > ; constructor ( currentStack , paginate ? ) { super ( 'paginate' , currentStack ) ; this . _paginate = paginate ; this . _stack . push ( this ) ; } }