temp fixes for TS lint (#2352)

This commit is contained in:
Bruce Martin
2021-07-29 18:31:38 -07:00
committed by GitHub
parent 8136387127
commit 0e7daea737
6 changed files with 21 additions and 6 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
/*
Private helper functions related to schema
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any -- - FIXME: disabled temporarily on migrate to TS.
export function _getColumnSchema(schema: any, field: any, col: any) {
/* look up the column definition */
switch (field) {
@@ -23,11 +24,13 @@ export function _getColumnSchema(schema: any, field: any, col: any) {
}
}
export function _isIndex(schema: any, field: any, col: any): bool {
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any -- - FIXME: disabled temporarily on migrate to TS.
export function _isIndex(schema: any, field: any, col: any): boolean {
const index = schema.annotations?.[field].index;
return index && index === col;
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
export function _getColumnDimensionNames(schema: any, field: any, col: any) {
/*
field/col may be an alias for multiple columns. Currently used to map ND