chore(sqllab): typescript for getInitialState (#25047)

This commit is contained in:
JUST.in DO IT
2023-08-24 16:54:06 -07:00
committed by GitHub
parent 6ac906f388
commit 4d9e9a4b1c
12 changed files with 324 additions and 67 deletions

View File

@@ -18,6 +18,7 @@
*/
import React, { useState, useRef, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import type { Table } from 'src/SqlLab/types';
import Collapse from 'src/components/Collapse';
import Card from 'src/components/Card';
import ButtonGroup from 'src/components/ButtonGroup';
@@ -49,16 +50,6 @@ export interface Column {
type: string;
}
export interface Table {
id: string;
dbId: number;
schema: string;
name: string;
dataPreviewQueryId?: string | null;
expanded?: boolean;
initialized?: boolean;
}
export interface TableElementProps {
table: Table;
}