mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-24 23:08:42 +02:00
build: minor change in ts config
This commit is contained in:
parent
4386c6ab95
commit
77ab8d8a03
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
export default class {
|
export default class {
|
||||||
static get _methods () {
|
static get _methods () {
|
||||||
return [
|
return [
|
||||||
@ -180,7 +181,7 @@ export default class {
|
|||||||
acc[curr.group] = new Set(curr.types);
|
acc[curr.group] = new Set(curr.types);
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {} as any);
|
||||||
|
|
||||||
const groupsArr = [];
|
const groupsArr = [];
|
||||||
|
|
||||||
@ -198,12 +199,12 @@ export default class {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static getGroupsByType (type) {
|
static getGroupsByType (type: string) {
|
||||||
if (!type) return [];
|
if (!type) return [];
|
||||||
return this.getGroups().filter(group => group.types.includes(type));
|
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) => {
|
return this._methods.filter(method => method.group === group && method.types.includes(type)).sort((a, b) => {
|
||||||
if (a.name < b.name)
|
if (a.name < b.name)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export function bufferToBase64 (buf: Buffer) {
|
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);
|
return String.fromCharCode(ch);
|
||||||
}).join('');
|
}).join('');
|
||||||
return Buffer.from(binstr, 'binary').toString('base64');
|
return Buffer.from(binstr, 'binary').toString('base64');
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"./tests/**/*",
|
"./tests/**/*",
|
||||||
"./src/main/**/*",
|
"./src/main/**/*",
|
||||||
"./src/renderer/**/*",
|
"./src/renderer/**/*",
|
||||||
"./src/common/interfaces/antares.ts"
|
"./src/common/**/*",
|
||||||
, "src/common/libs/jsonToSql.ts" ],
|
],
|
||||||
"exclude": ["./src/renderer/libs/ext-language_tools.js"],
|
"exclude": ["./src/renderer/libs/ext-language_tools.js"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user