Skip to content

Commit 4313b93

Browse files
chore: clean up types directory
1 parent 8aadb67 commit 4313b93

25 files changed

Lines changed: 22 additions & 24 deletions

__tests__/analysis/makeMove-fen.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GameTree, GameNode } from 'src/types/base/tree'
1+
import { GameTree, GameNode } from 'src/types/tree'
22
import { Chess, PieceSymbol } from 'chess.ts'
33

44
describe('Analysis Page makeMove Logic for FEN Positions', () => {

__tests__/analysis/makeMove-variation-fix.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GameTree, GameNode } from 'src/types/base/tree'
1+
import { GameTree, GameNode } from 'src/types/tree'
22
import { Chess, PieceSymbol } from 'chess.ts'
33

44
describe('makeMove Logic - Variation Continuation Test', () => {

__tests__/types/tree-fen-moves.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GameTree, GameNode } from 'src/types/base/tree'
1+
import { GameTree, GameNode } from 'src/types/tree'
22
import { Chess, Move } from 'chess.ts'
33

44
describe('GameTree FEN Position Move Handling', () => {

__tests__/types/tree.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GameNode } from 'src/types/base/tree'
1+
import { GameNode } from 'src/types/tree'
22
import { StockfishEvaluation, MaiaEvaluation } from 'src/types'
33

44
describe('GameNode Move Classification', () => {

src/components/Openings/DrillPerformanceModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
import { MOVE_CLASSIFICATION_THRESHOLDS } from 'src/constants/analysis'
3535
import { useTreeController } from 'src/hooks'
3636
import { generateColorSanMapping } from 'src/hooks/useAnalysisController/utils'
37-
import { GameNode, GameTree } from 'src/types/base/tree'
37+
import { GameNode, GameTree } from 'src/types/tree'
3838

3939
interface Props {
4040
performanceData: DrillPerformanceData

src/components/Openings/OpeningDrillAnalysis.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
AnalysisSidebar,
88
} from '../Analysis'
99
import { GameNode } from 'src/types'
10-
import { GameTree } from 'src/types/base/tree'
10+
import { GameTree } from 'src/types/tree'
1111
import type { DrawShape } from 'chessground/draw'
1212
import { useAnalysisController } from 'src/hooks/useAnalysisController'
1313
import { WindowSizeContext } from 'src/contexts'

src/lib/analysis/mistakeDetection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Chess } from 'chess.ts'
2-
import { GameNode, GameTree } from 'src/types/base/tree'
2+
import { GameNode, GameTree } from 'src/types/tree'
33
import { MistakePosition } from 'src/types/analysis'
44

55
/**

src/lib/openings/drillAnalysis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Chess } from 'chess.ts'
22
import { StockfishEvaluation, MaiaEvaluation } from 'src/types'
3-
import { GameNode } from 'src/types/base/tree'
3+
import { GameNode } from 'src/types/tree'
44
import {
55
MoveAnalysis,
66
RatingComparison,

src/pages/analysis/stream/[gameId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { useAnalysisController } from 'src/hooks'
1212
import { TreeControllerContext } from 'src/contexts'
1313
import { StreamAnalysis } from 'src/components/Analysis/StreamAnalysis'
1414
import { AnalyzedGame } from 'src/types'
15-
import { GameTree } from 'src/types/base/tree'
15+
import { GameTree } from 'src/types/tree'
1616

1717
const StreamAnalysisPage: NextPage = () => {
1818
const router = useRouter()

src/pages/openings/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
MaiaEngineContext,
1515
} from 'src/contexts'
1616
import { DrillConfiguration, AnalyzedGame } from 'src/types'
17-
import { GameNode } from 'src/types/base/tree'
17+
import { GameNode } from 'src/types/tree'
1818
import { MIN_STOCKFISH_DEPTH } from 'src/constants/analysis'
1919
import openings from 'src/lib/openings/openings.json'
2020
import { OpeningDrillAnalysis } from 'src/components/Openings/OpeningDrillAnalysis'

0 commit comments

Comments
 (0)