Skip to content

Commit 872f939

Browse files
authored
fix: fix constuctor (#28)
* fix: fix constuctor * fix: format fix
1 parent 22444d5 commit 872f939

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/adapter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export class PrismaAdapter implements Adapter {
99
#option?: Prisma.PrismaClientOptions;
1010
#prisma: PrismaClient;
1111

12+
/**
13+
* @param option It should be PrismaClientOptions or PrismaClient.
14+
* You should later call open() to activate it.
15+
*/
1216
constructor(option?: Prisma.PrismaClientOptions | PrismaClient) {
1317
if (option instanceof PrismaClient) {
1418
this.#prisma = option;

0 commit comments

Comments
 (0)