Closed ShootingStar91 closed 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
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
Figure out a way to use the types from backend in frontend and implement it