Replace JS array type declaration with any[]
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
0819043d0e
commit
cc444d9d08
@ -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 = [];
|
||||
|
||||
|
||||
@ -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') {
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user