Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
11
packages/pl-api/lib/responses.ts
Normal file
11
packages/pl-api/lib/responses.ts
Normal file
@ -0,0 +1,11 @@
|
||||
interface PaginatedResponse<T> {
|
||||
previous: (() => Promise<PaginatedResponse<T>>) | null;
|
||||
next: (() => Promise<PaginatedResponse<T>>) | null;
|
||||
items: Array<T>;
|
||||
partial: boolean;
|
||||
total?: number;
|
||||
}
|
||||
|
||||
export type {
|
||||
PaginatedResponse,
|
||||
};
|
||||
Reference in New Issue
Block a user