From 5d206ea7188bcf9830df8e55c6e524df4c477c30 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 27 Mar 2018 13:17:16 +0300 Subject: [PATCH] convenient typealias PaginationWrapperType --- ...PaginationWrapperDelegate+DefaultImplementation.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/Extensions/DataLoading/PaginationDataLoading/PaginationWrapperDelegate+DefaultImplementation.swift b/Sources/Extensions/DataLoading/PaginationDataLoading/PaginationWrapperDelegate+DefaultImplementation.swift index 3f5da223..dd7c7154 100644 --- a/Sources/Extensions/DataLoading/PaginationDataLoading/PaginationWrapperDelegate+DefaultImplementation.swift +++ b/Sources/Extensions/DataLoading/PaginationDataLoading/PaginationWrapperDelegate+DefaultImplementation.swift @@ -70,3 +70,12 @@ public extension PaginationWrapperDelegate { } } + +public extension PaginationWrapperDelegate + where DataSourceType: ResettableRxDataSourceCursor, + DataSourceType.ResultType == [DataSourceType.Element] { + + /// Convenient typealias. + typealias PaginationWrapperType = PaginationWrapper + +}