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

6 lines
152 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
export type PaginatedRequest<T = {}, S extends string = string> = {
count?: number;
offset?: number;
sort?: `{ "${S}": ${1 | -1} }` | string;
} & T;