lease-types
v1.0.43
Published
Common types for webapp and api
Readme
lease-types
Types used both by the webapp and the api.
Most of the files contains 2 kind of types:
- Zod schema for runtime validation, along with its generated typescript types. Those represent the Form objects sent by the Webapp.
- CosmosDb types, which as the document types stored in the database.
Choice has been made to keep those types distinct for flexibility, as the form representation of an object may diverge from the data stored. Some data stored, may, for instance be computed or enriched in the backend.
So even if the two may seem close, or even equal for some objects, it may not be in the future.
