The minimal Prisma delegate surface the store calls — a real PrismaClient with the Comment model is assignable, so pass it directly. Method arguments are typed any (Prisma's generated method generics can't be reproduced by a hand-written interface); return types stay precise.
basalt / comments-prisma/src / PrismaCommentsClient
Interface: PrismaCommentsClient
Defined in: comments-prisma/src/index.ts:43
The minimal Prisma delegate surface the store calls — a real
PrismaClientwith theCommentmodel is assignable, so pass it directly. Method arguments are typedany(Prisma's generated method generics can't be reproduced by a hand-written interface); return types stay precise.Properties
comment
> comment:
objectDefined in: comments-prisma/src/index.ts:44
create()
> create(
a):Promise<PComment>Parameters
a
anyReturns
Promise<PComment>deleteMany()
> deleteMany(
a):Promise<{count:number; }>Parameters
a
anyReturns
Promise<{count:number; }>findMany()
> findMany(
a):Promise<PComment[]>Parameters
a
anyReturns
Promise<PComment[]>findUnique()
> findUnique(
a):Promise<PComment|null>Parameters
a
anyReturns
Promise<PComment|null>updateMany()
> updateMany(
a):Promise<{count:number; }>Parameters
a
anyReturns
Promise<{count:number; }>