WorkshopTasker/server/utils/baaPagination.ts

21 lines
332 B
TypeScript
Raw Normal View History

2023-05-11 06:03:22 +02:00
type queryType = {
type: "before" | "after" | "around",
id: string
} | {
type: null
};
/**
* Before, around, after pagination wrapper
*/
export default class baaPagination<T> {
readonly table: string;
readonly key: string;
constructor(table: string, key: string) {
this.table = table;
this.key = key;
}
}