Replace JS array type declaration with any[]

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-02-08 15:54:35 -03:00
parent 0819043d0e
commit cc444d9d08
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
5 changed files with 16 additions and 16 deletions

View File

@ -16,13 +16,13 @@ var DesignerHistory = {};
/**
* Global array to store history objects.
* @type {Array}
* @type {any[]}
*/
DesignerHistory.historyArray = [];
/**
* Global array to store information for columns which are used in select clause.
* @type {Array}
* @type {any[]}
*/
DesignerHistory.selectField = [];

View File

@ -302,7 +302,7 @@ window.validators = {
* @param {string} id field id
* @param {string} type validator (key in validators object)
* @param {boolean} onKeyUp whether fire on key up
* @param {Array} params validation function parameters
* @param {any[]} params validation function parameters
*/
Config.registerFieldValidator = (id, type, onKeyUp, params) => {
if (typeof window.validators[type] === 'undefined') {

View File

@ -44,7 +44,7 @@ let sqlAutoCompleteInProgress = false;
/**
* Object containing list of columns in each table.
* @type {(array|boolean)}
* @type {(any[]|boolean)}
*/
let sqlAutoComplete = false;
@ -56,7 +56,7 @@ let sqlAutoCompleteDefaultTable = '';
/**
* Array to hold the columns in central list per db.
* @type {array}
* @type {any[]}
*/
window.centralColumnList = [];

View File

@ -20,31 +20,31 @@ const Indexes = {};
/**
* Array to hold 'Primary' index columns.
* @type {array}
* @type {any[]}
*/
let primaryColumns = [];
/**
* Array to hold 'Unique' index columns.
* @type {array}
* @type {any[]}
*/
let uniqueColumns = [];
/**
* Array to hold 'Index' columns.
* @type {array}
* @type {any[]}
*/
let indexColumns = [];
/**
* Array to hold 'Fulltext' columns.
* @type {array}
* @type {any[]}
*/
let fulltextColumns = [];
/**
* Array to hold 'Spatial' columns.
* @type {array}
* @type {any[]}
*/
let spatialColumns = [];

View File

@ -1,8 +1,4 @@
{
"include": [
"./js/global.d.ts",
"./js/src/**/*"
],
"compilerOptions": {
"target": "es6",
"module": "es6",
@ -12,6 +8,10 @@
"declarationMap": true,
"checkJs": true,
"outDir": "./build/js",
"allowSyntheticDefaultImports": true
}
"allowSyntheticDefaultImports": true,
"strict": false,
"isolatedModules": true
},
"include": ["./js/global.d.ts", "./js/src/**/*"],
"exclude": ["node_modules"]
}