Similar to prisma-json-types-generated, I would like to augment the generated types to achieve proper type-safety when querying the data.
Example
zmodel
type Ruler {
orientation String
property1 String?
property2 Json?
}
The "real" type
type IRulerLtr = {
orientation: 'ltr'
property1: string
}
type IRulerRtl = {
orientation: 'rtl'
property2: string | number
}
type IRuler = IRulerLtr | IRulerRtl
Similar to prisma-json-types-generated, I would like to augment the generated types to achieve proper type-safety when querying the data.
Example
zmodel
The "real" type