如何为vitepress导出的data数据添加类型提示

由QuHou作于

2025年3月28日

AI摘要:

用declare声明data数据,然后显示导出data

核心代码: ​

js
declare const data: Archive[]
export { data }