WorkshopTasker/server/utils/baaPagination.ts
2023-05-11 06:03:22 +02:00

20 lines
332 B
TypeScript

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;
}
}