@@ -34,7 +34,7 @@ export abstract class ReadManyRequest<
3434 I extends DynamoDB . QueryInput | DynamoDB . ScanInput ,
3535 O extends DynamoDB . QueryOutput | DynamoDB . ScanOutput ,
3636 Z extends QueryResponse < T2 > | ScanResponse < T2 > ,
37- R extends QueryRequest < T2 > | ScanRequest < T2 >
37+ R extends QueryRequest < T , T2 > | ScanRequest < T , T2 >
3838> extends StandardRequest < T , T2 , I , ReadManyRequest < T , T2 , I , O , Z , R > > {
3939 /** Infinite limit will remove the Limit param from request params when calling ReadManyRequest.limit(ReadManyRequest.INFINITE_LIMIT) */
4040 static INFINITE_LIMIT = - 1
@@ -112,7 +112,6 @@ export abstract class ReadManyRequest<
112112 * Specifies the list of model attributes to be returned from the table instead of returning the entire document
113113 * @param attributesToGet List of model attributes to be returned
114114 */
115- // @ts -ignore: type R does not satisfy the constraint, don't know how to resolve
116115 projectionExpression ( ...attributesToGet : Array < keyof T | string > ) : ReadManyRequest < T , Partial < T > , I , O , Z , R > {
117116 addProjectionExpressionParam ( attributesToGet , this . params , this . metadata )
118117 return < any > this
@@ -213,7 +212,7 @@ export abstract class ReadManyRequest<
213212 * fetches all pages. may uses all provisionedOutput, therefore for client side use cases rather use pagedDatasource (exec)
214213 */
215214 execFetchAll ( ) : Promise < T2 [ ] > {
216- return fetchAll ( < R > ( < any > this ) )
215+ return fetchAll ( < any > this )
217216 }
218217
219218 protected mapFromDb = ( output : O ) => {
0 commit comments