mirror of
https://github.com/hanzoai/captable.git
synced 2026-10-16 14:21:29 +00:00
feat: types for reusable cursor based pagination
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Pagination information
|
||||
*/
|
||||
export type PaginationData = {
|
||||
limit?: number;
|
||||
cursor?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Proxy functions
|
||||
*
|
||||
* used to create custom methods for prisma models
|
||||
*/
|
||||
export type ProxyFunctions = {
|
||||
// biome-ignore lint/suspicious/noExplicitAny: <any is legal here>
|
||||
findMany: (params: unknown, pagination: PaginationData) => Promise<any>;
|
||||
count: (params: unknown) => Promise<number>;
|
||||
};
|
||||
Reference in New Issue
Block a user