fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -19,5 +19,5 @@ export async function addUser(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -22,5 +22,5 @@ export async function create(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -14,5 +14,5 @@ export async function del(this: IExecuteFunctions, index: number): Promise<INode
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -34,7 +34,7 @@ export async function members(
if (resolveData) {
const userIds: string[] = [];
for (const data of responseData) {
userIds.push(data.user_id);
userIds.push(data.user_id as string);
}
if (userIds.length > 0) {
responseData = await apiRequest.call(this, 'POST', 'users/ids', userIds, qs);
@@ -42,5 +42,5 @@ export async function members(
}
}
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -17,5 +17,5 @@ export async function restore(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -24,5 +24,5 @@ export async function search(
responseData = responseData.slice(0, limit);
}
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -17,5 +17,5 @@ export async function statistics(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -14,5 +14,5 @@ export async function del(this: IExecuteFunctions, index: number): Promise<INode
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -84,5 +84,5 @@ export async function post(this: IExecuteFunctions, index: number): Promise<INod
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -22,5 +22,5 @@ export async function postEphemeral(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -20,5 +20,5 @@ export async function create(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -16,5 +16,5 @@ export async function del(this: IExecuteFunctions, index: number): Promise<INode
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -20,5 +20,5 @@ export async function getAll(
if (limit > 0) {
responseData = responseData.slice(0, limit);
}
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -35,5 +35,5 @@ export async function create(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -16,5 +16,5 @@ export async function deactive(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -110,5 +110,5 @@ export async function getAll(
responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
}
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -17,5 +17,5 @@ export async function getByEmail(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -21,5 +21,5 @@ export async function getById(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -19,5 +19,5 @@ export async function invite(
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
return this.helpers.returnJsonArray(responseData);
return this.helpers.returnJsonArray(responseData as IDataObject[]);
}

View File

@@ -48,7 +48,7 @@ export async function apiRequestAllItems(
do {
responseData = await apiRequest.call(this, method, endpoint, body, query);
query.page++;
returnData.push.apply(returnData, responseData);
returnData.push.apply(returnData, responseData as IDataObject[]);
} while (responseData.length !== 0);
return returnData;