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

@@ -17,7 +17,6 @@
* under the License.
*/
import { Component } from 'react';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import {
Input,
@@ -81,40 +80,6 @@ interface TextAreaControlProps {
[key: string]: unknown;
}
const propTypes = {
name: PropTypes.string,
onChange: PropTypes.func,
initialValue: PropTypes.string,
height: PropTypes.number,
minLines: PropTypes.number,
maxLines: PropTypes.number,
offerEditInModal: PropTypes.bool,
language: PropTypes.oneOf([
null,
'json',
'html',
'sql',
'markdown',
'javascript',
'handlebars',
]),
aboveEditorSection: PropTypes.node,
readOnly: PropTypes.bool,
resize: PropTypes.oneOf([
null,
'block',
'both',
'horizontal',
'inline',
'none',
'vertical',
]),
textAreaStyles: PropTypes.object,
tooltipOptions: PropTypes.object,
hotkeys: PropTypes.array,
debounceDelay: PropTypes.number,
};
const defaultProps = {
onChange: () => {},
initialValue: '',
@@ -131,8 +96,6 @@ const defaultProps = {
};
class TextAreaControl extends Component<TextAreaControlProps> {
static propTypes = propTypes;
static defaultProps = defaultProps;
debouncedOnChange: