@types/documentdb: Use specified return type in queryDocuments (#27021)

`queryDocuments` already has a type variable but it is not being used in the return type.
This PR simply merges the RetrievedDocument type with the input type.
This commit is contained in:
Ben LeFevre 2018-07-09 18:26:39 +00:00 committed by Ryan Cavanaugh
parent ebcb52fb25
commit 8c23206f59

View File

@ -802,7 +802,7 @@ export class DocumentClient {
* @param [options] - Represents the feed options.
* @returns - An instance of queryIterator to handle reading feed.
*/
queryDocuments<TDocument>(collectionLink: string, query: DocumentQuery, options?: FeedOptions): QueryIterator<RetrievedDocument>;
queryDocuments<TDocument>(collectionLink: string, query: DocumentQuery, options?: FeedOptions): QueryIterator<RetrievedDocument & TDocument>;
/**
* Query the triggers for the collection.