Open Adoubf opened 3 hours ago
src/routes/history.ts:47:38 - error TS2873: This kind of expression is always falsy.
47 cover: v.cover ? v.pic_share : null || null,
Found 1 error in src/routes/history.ts:47 ### 如图所示 ![image](https://github.com/user-attachments/assets/29bb6aa5-d6f4-494a-8906-198ca2d7d9ad) ### 补充信息 _No response_
npm run start
dailyhot-api@2.0.4 start tsx src/index.ts
使用命令后,无法启动API项目,没有任何显示
问题描述
代码报错如下:
src/routes/history.ts:47:38 - error TS2873: This kind of expression is always falsy.
47 cover: v.cover ? v.pic_share : null || null,