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