在TypeScript中,您可以使用export type来定义和导出一个类型。下面的语句: export type Theme = 'light' | 'dark' | 'auto'; 在这里,Theme是一个类型,它可以是字符串..