devscard/src/types/skills-section.ts
2022-08-28 23:10:46 +02:00

15 lines
315 B
TypeScript

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