nowcommunity / nowdatabase

Rebuild of the nowdatabase application for luomus
MIT License
3 stars 1 forks source link

Bring types from backend to frontend #13

Closed ShootingStar91 closed 4 months ago

ShootingStar91 commented 5 months ago

Figure out a way to use the types from backend in frontend and implement it

ShootingStar91 commented 4 months ago

Types can simply be imported by @backend/ but right now tsc gives errors from backend as it tries to compile it too but does not understand the backend path aliases. This needs figuring out. maybe import type or ajdusting config files

ShootingStar91 commented 4 months ago

The database files can be imported from freely, because they themselves do not import files from the rest of the backend, meaning tsc will not try to compile the rest of the backend.

So, any other types that need to be shared should be put into repo-roots shared/ directory and imported to both from there.

Not sure yet if this solution will work for everything, but I'll go with this for now