is it possible (recommended) to access prisma inte...
# orm-help
a
is it possible (recommended) to access prisma interfaces from frontend to add typing to responses from fetch requests
a
Hey Adam 👋 , It is definitely possible and pretty common. Prisma generates a type for each model in your schema and they can be imported from the
@prisma/client
package. You can specify them as type imports to be explicit:
Copy code
import type { User, Post } from '@prisma/client'
a
Thank you very much