diff --git a/.eslintignore b/.eslintignore index 1b7850a18..b717fcfc7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -14,8 +14,6 @@ src/Common/DataAccessUtilityBase.ts src/Common/EditableUtility.ts src/Common/HashMap.test.ts src/Common/HashMap.ts -src/Common/IteratorUtilities.test.ts -src/Common/IteratorUtilities.ts src/Common/Logger.test.ts src/Common/MessageHandler.test.ts src/Common/MessageHandler.ts diff --git a/src/Common/IteratorUtilities.ts b/src/Common/IteratorUtilities.ts index 62249c1ed..f85ad7fb2 100644 --- a/src/Common/IteratorUtilities.ts +++ b/src/Common/IteratorUtilities.ts @@ -1,6 +1,8 @@ import { QueryResults } from "../Contracts/ViewModels"; interface QueryResponse { + // [Todo] remove any + // eslint-disable-next-line @typescript-eslint/no-explicit-any resources: any[]; hasMoreResults: boolean; activityId: string; @@ -16,6 +18,7 @@ export interface MinimalQueryIterator { export function nextPage(documentsIterator: MinimalQueryIterator, firstItemIndex: number): Promise { return documentsIterator.fetchNext().then((response) => { const documents = response.resources; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const headers = (response as any).headers || {}; // TODO this is a private key. Remove any const itemCount = (documents && documents.length) || 0; return {