verdnatura-chat/app/definitions/rest/helpers/PaginatedRequest.ts

6 lines
152 B
TypeScript

export type PaginatedRequest<T = {}, S extends string = string> = {
count?: number;
offset?: number;
sort?: `{ "${S}": ${1 | -1} }` | string;
} & T;