diff --git a/src/common/FakerMethods.ts b/src/common/FakerMethods.ts index 3d43ecb9..8b048bce 100644 --- a/src/common/FakerMethods.ts +++ b/src/common/FakerMethods.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ export default class { static get _methods () { return [ @@ -180,7 +181,7 @@ export default class { acc[curr.group] = new Set(curr.types); return acc; - }, {}); + }, {} as any); const groupsArr = []; @@ -198,12 +199,12 @@ export default class { }); } - static getGroupsByType (type) { + static getGroupsByType (type: string) { if (!type) return []; return this.getGroups().filter(group => group.types.includes(type)); } - static getMethods ({ type, group }) { + static getMethods ({ type, group }: {type: string; group: string}) { return this._methods.filter(method => method.group === group && method.types.includes(type)).sort((a, b) => { if (a.name < b.name) return -1; diff --git a/src/common/libs/bufferToBase64.ts b/src/common/libs/bufferToBase64.ts index 312ead6a..cb000f6a 100644 --- a/src/common/libs/bufferToBase64.ts +++ b/src/common/libs/bufferToBase64.ts @@ -1,5 +1,5 @@ export function bufferToBase64 (buf: Buffer) { - const binstr = Array.prototype.map.call(buf, ch => { + const binstr = Array.prototype.map.call(buf, (ch: number) => { return String.fromCharCode(ch); }).join(''); return Buffer.from(binstr, 'binary').toString('base64'); diff --git a/tsconfig.json b/tsconfig.json index e52301cf..284b0b19 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,8 @@ "./tests/**/*", "./src/main/**/*", "./src/renderer/**/*", - "./src/common/interfaces/antares.ts" -, "src/common/libs/jsonToSql.ts" ], + "./src/common/**/*", + ], "exclude": ["./src/renderer/libs/ext-language_tools.js"], "compilerOptions": { "baseUrl": "./",