Skip to content

Commit

Permalink
fix(selector): infer data for collection DocumentResult
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Feb 15, 2024
1 parent f8fcb05 commit e54c82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ type PaginatedCollectionSelector<TDocument> = Selector<
>;

export const createPaginatedCollectionSelector =
<TDocument extends DocumentResult<AnyResourceDeserializer>>(
<TDocument extends DocumentResult<ResourceCollectionDocumentResult<AnyResourceDeserializer>>>(
documentSelector: Selector<TDocument>,
): PaginatedCollectionSelector<TDocument> =>
(raw: unknown) => {
Expand Down

0 comments on commit e54c82e

Please sign in to comment.