Skip to content

Commit 183fab1

Browse files
authored
Revert "chore(vscode): reducing any types" (#4454)
1 parent c42bd3d commit 183fab1

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

vscode/react/src/components/graph/ModelColumns.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ import { Popover, Transition } from '@headlessui/react'
4646
import { useApiColumnLineage } from '@/api/index'
4747
import SourceList from '@/components/sourceList/SourceList'
4848

49+
type Lineage = any
50+
4951
export default function ModelColumns({
5052
nodeId,
5153
columns,

vscode/react/src/components/graph/context.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Column, type Model } from '@/api/client'
1+
import { type Column } from '@/api/client'
22
import {
33
createContext,
44
useState,
@@ -9,7 +9,6 @@ import {
99
import { getNodeMap, hasActiveEdge, hasActiveEdgeConnector } from './help'
1010
import { EnumSide } from './types'
1111
import { type Node } from 'reactflow'
12-
import type { Lineage } from '@/domain/lineage'
1312
export interface Connections {
1413
left: string[]
1514
right: string[]
@@ -20,7 +19,9 @@ export type ActiveNodes = Set<string>
2019
export type SelectedNodes = Set<string>
2120
export type HighlightedNodes = Record<string, string[]>
2221

22+
type Lineage = any
2323
type ModelSQLMeshModel = any
24+
type Model = any
2425

2526
interface LineageFlow {
2627
lineage: Record<string, Lineage>
@@ -32,7 +33,7 @@ interface LineageFlow {
3233
selectedNodes: SelectedNodes
3334
selectedEdges: any[]
3435
models: Record<string, Model>
35-
unknownModels: Set<string>
36+
unknownModels: Record<string, Model>
3637
connections: Map<string, Connections>
3738
withConnected: boolean
3839
withColumns: boolean
@@ -83,7 +84,7 @@ export const LineageFlowContext = createContext<LineageFlow>({
8384
mainNode: undefined,
8485
activeEdges: new Map(),
8586
activeNodes: new Set(),
86-
models: {},
87+
models: new Map(),
8788
unknownModels: new Set(),
8889
manuallySelectedColumn: undefined,
8990
connections: new Map(),

vscode/react/src/domain/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export interface Model {
1+
interface Model {
22
name: string
33
fqn: string
44
path: string

vscode/react/src/domain/sqlmesh-model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
} from '@/api/client'
1111
import { isArrayNotEmpty } from '@/utils/index'
1212
import { ModelInitial } from './initial'
13-
import type { Lineage } from './lineage'
13+
14+
type Lineage = any
1415

1516
export interface InitialSQLMeshModel extends Model {
1617
lineage?: Record<string, Lineage>

0 commit comments

Comments
 (0)