Hi! I'm having some trouble creating mapped types ...
# orm-help
j
Hi! I'm having some trouble creating mapped types from the model types Prisma exports
Copy code
type Map<T> = {
    [P in keyof T]: T[P]
}
type test3 = Map<PrismaModel>
I would expect nullable properties to be nullable in the mapped result, but they're not. If I copy and paste the type definition into my types file and use the
Map<T>
type then the nullable properties remain nullable. Am I missing something here?