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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user