devscard/src/types/skills-section.ts
2022-10-30 10:29:01 +01:00

15 lines
329 B
TypeScript

import type { SectionConfig, Tag } from './common';
export interface LevelledSkill extends Tag {
level: 1 | 2 | 3 | 4 | 5;
}
export interface SkillSet<SkillType> {
title: string;
skills: SkillType[];
}
export interface SkillsSection {
skillSets: (SkillSet<Tag> | SkillSet<LevelledSkill>)[];
config: SectionConfig;
}