TypeScript & React TodoMVC Example
type BaseItemType = {
from: string;
to: string;
where: string;
what: string;
};
// 技能
type Skill = {
title: string; percentage: number
};
// 项目
type Project = { name: string; description?: string; details: string[] };
// 实习经历
type Intern = BaseItemType & {
description?: string;
details: string[];
projects?: Project[];
};