refactor: prefer import type (#10190)

* style(linter): enable consistent-type-imports rule in typescript

* chore: add biome to lint script for improved code formatting

* chore: add oxlint-specific lint script for faster linting

* refactor: use type-only imports for better type safety and clarity
This commit is contained in:
Phantom
2025-09-17 12:32:53 +08:00
committed by GitHub
parent 59bf94b118
commit d4b0272fe7
779 changed files with 1845 additions and 1498 deletions
+2 -1
View File
@@ -3,7 +3,8 @@
* Provides consistent error handling across renderer and main processes
*/
import { DataApiError, ErrorCode } from './apiTypes'
import type { DataApiError } from './apiTypes'
import { ErrorCode } from './apiTypes'
// Re-export ErrorCode for convenience
export { ErrorCode } from './apiTypes'