refactor: reorganize project structure and improve type definitions
- Split types into separate modules for better organization - Move data files to dedicated directories with proper documentation - Enhance i18n utilities with better type safety and performance - Maintain backward compatibility with legacy imports
This commit is contained in:
22
src/types/components.ts
Normal file
22
src/types/components.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Component types module
|
||||
* Contains type definitions for UI components
|
||||
*/
|
||||
import type { Lang } from './i18n';
|
||||
|
||||
/**
|
||||
* Skill item interface
|
||||
*/
|
||||
export interface SkillItem {
|
||||
name: string;
|
||||
icon: string;
|
||||
color: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Skill section component props
|
||||
*/
|
||||
export interface SkillSectionProps {
|
||||
title: string;
|
||||
skills: SkillItem[];
|
||||
}
|
||||
Reference in New Issue
Block a user