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

@@ -13,7 +13,7 @@ vi.mock('@/api/client.js', () => ({
}));
// Mock login store to avoid its side effects
vi.mock('@/stores/login.ts', () => {
vi.mock('@/stores/login', () => {
const { defineStore } = require('pinia');
return {
useLoginStore: defineStore('loginStore', {
@@ -27,7 +27,7 @@ vi.mock('@/stores/login.ts', () => {
};
});
import { useAcctMgmtStore } from '@/stores/acctMgmt.ts';
import { useAcctMgmtStore } from '@/stores/acctMgmt';
describe('acctMgmtStore', () => {
let store;