Convert all store files from JavaScript to TypeScript

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 14:47:57 +08:00
parent 90048d0505
commit a619be7881
65 changed files with 2031 additions and 5066 deletions

View File

@@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, vi } from 'vitest';
import { setActivePinia, createPinia } from 'pinia';
// Mock allMapData store (used by createInsightWithPath / createPaths)
vi.mock('@/stores/allMapData.js', () => ({
vi.mock('@/stores/allMapData', () => ({
default: () => ({ insights: {} }),
}));
@@ -16,7 +16,7 @@ vi.mock('@/assets/capsule2.svg', () => ({ default: 'cap2' }));
vi.mock('@/assets/capsule3.svg', () => ({ default: 'cap3' }));
vi.mock('@/assets/capsule4.svg', () => ({ default: 'cap4' }));
import { useMapPathStore } from '@/stores/mapPathStore.ts';
import { useMapPathStore } from '@/stores/mapPathStore';
/**
* Creates a mock Cytoscape node.