Skip to content

Commit 4293bc1

Browse files
committed
chore(vscode): reducing any types
1 parent e09aa80 commit 4293bc1

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ 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-
5149
export default function ModelColumns({
5250
nodeId,
5351
columns,

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Column } from '@/api/client'
1+
import { type Column, type Model } from '@/api/client'
22
import {
33
createContext,
44
useState,
@@ -9,6 +9,7 @@ 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'
1213
export interface Connections {
1314
left: string[]
1415
right: string[]
@@ -19,9 +20,7 @@ export type ActiveNodes = Set<string>
1920
export type SelectedNodes = Set<string>
2021
export type HighlightedNodes = Record<string, string[]>
2122

22-
type Lineage = any
2323
type ModelSQLMeshModel = any
24-
type Model = any
2524

2625
interface LineageFlow {
2726
lineage: Record<string, Lineage>
@@ -84,8 +83,8 @@ export const LineageFlowContext = createContext<LineageFlow>({
8483
mainNode: undefined,
8584
activeEdges: new Map(),
8685
activeNodes: new Set(),
87-
models: new Map(),
88-
unknownModels: new Set(),
86+
models: {},
87+
unknownModels: {},
8988
manuallySelectedColumn: undefined,
9089
connections: new Map(),
9190
selectedNodes: new Set(),

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-
interface Model {
1+
export interface Model {
22
name: string
33
fqn: string
44
path: string

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

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

1615
export interface InitialSQLMeshModel extends Model {
1716
lineage?: Record<string, Lineage>

0 commit comments

Comments
 (0)