Can someone help me with this code snippet?
export interface Chapter {
title: string,
path: string
}
export type TableOfContents: Chapter[]
I'm encountering the following error message:
[ts] 'Chapter' only refers to a type, but is being used as a value here. [2693]
The goal is to export the Chapter interface and then define the type TableOfContents as an array of chapters.
Any insights on what I might be missing?