rvion / CushyStudio

🛋 The AI and Generative Art platform for everyone
https://docs.cushystudio.com/
GNU Affero General Public License v3.0
684 stars 48 forks source link

Type definitions are not loaded on startup #11

Closed Globidev closed 1 year ago

Globidev commented 1 year ago

When opening a cushy workspace, the types won't be correctly resolved until the cushy.d.ts file is manually open

https://user-images.githubusercontent.com/2079561/232311012-263feb21-0a81-41f8-a585-48a74b1ea29c.mp4

rvion commented 1 year ago

🙌 ! thanks, the trick is to add /// <reference path="cushy.d.ts" /> at the top of the file;

i'm currently working on this very specific area;

rvion commented 1 year ago

I attempted to fix this by auto generating some tsconfig.json with proper type roots config at startup in your cushy worklspace not quite sure this is enough. it kinda work on my end, so I'll close it for now, but let's just re-open this issue if something doesn't work