Remove fetchPaginated and migrate viewer.js to viewer-index.js in webpack

This commit is contained in:
klmp200 committed 2024-10-09 21:46:56 +02:00
1 parent 9199f91151
commit 46e58bb49e
6 files changed
+315 -309

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ type PaginatedEndpoint<T> = <ThrowOnError extends boolean = false>(
options?: Options<PaginatedRequest, ThrowOnError>,
) => RequestResult<PaginatedResponse<T>, unknown, ThrowOnError>;
// TODO : If one day a test workflow is made for JS in this project
// please test this function. A all cost.
export const paginated = async <T>(
endpoint: PaginatedEndpoint<T>,
options?: PaginatedRequest,