Hey guys, does anyone know how to get the types fr...
# orm-help
d
Hey guys, does anyone know how to get the types from the models, so I can extend a type of mine? I tried getting it from .prisma/client/index.d.ts but when I extend my interface it doesnt recognize it and when I create a new type based on it, it thinks its of type any
Copy code
import { Users } from ".prisma/client/index.d.ts";

export type User = Users;
🙌 1
r
You can directly import it like this:
Copy code
import { User } from '@prisma/client'

type Users = User[]
👍 2
d
Thanks Ryan!
👍 1
d
import { Prisma } from '@prisma/client'
in TypeScript you can also import like
Prisma.UserCreateInput
💯 2