chore(frontend): comprehensive TypeScript quality improvements (#37625)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-06 16:16:57 -05:00
committed by GitHub
parent e9ae212c1c
commit fc5506e466
441 changed files with 14136 additions and 9956 deletions

View File

@@ -27,7 +27,7 @@ import {
useState,
} from 'react';
import { useSelector } from 'react-redux';
import { t } from '@apache-superset/core';
import { t, editors } from '@apache-superset/core';
import {
AdhocColumn,
isAdhocColumn,
@@ -164,7 +164,7 @@ const ColumnSelectPopover = ({
POPOVER_INITIAL_HEIGHT,
);
const sqlEditorRef = useRef(null);
const sqlEditorRef = useRef<editors.EditorHandle>(null);
const [calculatedColumns, simpleColumns] = useMemo(
() =>
@@ -351,8 +351,7 @@ const ColumnSelectPopover = ({
tab => {
getCurrentTab(tab);
setSelectedTab(tab);
// @ts-ignore
sqlEditorRef.current?.editor.focus();
sqlEditorRef.current?.focus();
},
[getCurrentTab],
);