mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
Found zod allows to pass anything in transform without type checking. This means we can easily get unexpected result. In this case we could get undefined as asset. As a solution I defined two versions of types, client side and stored in db. Conversion is implemented on db routes side. This makes data flow more clear and let us describe only two versions of types instead of tree (in, out, client side).
Webstudio Project
Project related functionalities. This was temporarily placed here to reuse between other packages, but we need to split this into separate packages and probably remove this package entirely or keep it only for "project" specific functionality.