我有以下代码:
export interface Chapter {
title: string,
path: string
}
export type TableOfContents: Chapter[]但我得到了以下错误:
ts“章节”仅指类型,但在这里用作值。二六九三
我想导出接口章节,然后导出TableOfContents类型,这是一个章节数组。
我做错了什么?
发布于 2019-01-18 12:11:17
https://stackoverflow.com/questions/54253749
复制相似问题