Skip to content

Commit fa0dca8

Browse files
committed
fix: infer typing for cursor pagination collection method per entity [CAPI-2357]
1 parent 5fc9db5 commit fa0dca8

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

lib/entities/asset.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,4 @@ export const wrapAssetCollection = wrapCollection(wrapAsset)
415415
/**
416416
* @private
417417
*/
418-
export const wrapAssetTypeCursorPaginatedCollection: (
419-
makeRequest: MakeRequest,
420-
data: CursorPaginatedCollectionProp<AssetProps>,
421-
) => CursorPaginatedCollectionProp<AssetProps> = wrapCursorPaginatedCollection(wrapAsset)
418+
export const wrapAssetTypeCursorPaginatedCollection = wrapCursorPaginatedCollection(wrapAsset)

lib/entities/content-type.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,5 @@ export const wrapContentTypeCollection = wrapCollection(wrapContentType)
364364
/**
365365
* @private
366366
*/
367-
export const wrapContentTypeCursorPaginatedCollection: (
368-
makeRequest: MakeRequest,
369-
data: CursorPaginatedCollectionProp<ContentTypeProps>,
370-
) => CursorPaginatedCollectionProp<ContentTypeProps> =
367+
export const wrapContentTypeCursorPaginatedCollection =
371368
wrapCursorPaginatedCollection(wrapContentType)

lib/entities/entry.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,4 @@ export const wrapEntryCollection = wrapCollection(wrapEntry)
7676
/**
7777
* @private
7878
*/
79-
export const wrapEntryTypeCursorPaginatedCollection: (
80-
makeRequest: MakeRequest,
81-
data: CursorPaginatedCollectionProp<EntryProps>,
82-
) => CursorPaginatedCollectionProp<EntryProps> = wrapCursorPaginatedCollection(wrapEntry)
79+
export const wrapEntryTypeCursorPaginatedCollection = wrapCursorPaginatedCollection(wrapEntry)

0 commit comments

Comments
 (0)