chore(sqllab): Typescript for SqlEditor component (#25228)

This commit is contained in:
JUST.in DO IT
2023-10-05 12:33:01 -04:00
committed by GitHub
parent c81c60c91f
commit 34f99708d4
15 changed files with 216 additions and 158 deletions

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import React, { useState, useEffect, useRef } from 'react';
import type { IAceEditor } from 'react-ace/lib/types';
import { useDispatch } from 'react-redux';
import { css, styled, usePrevious } from '@superset-ui/core';
@@ -30,7 +31,7 @@ type HotKey = {
key: string;
descr: string;
name: string;
func: () => void;
func: (aceEditor: IAceEditor) => void;
};
type AceEditorWrapperProps = {