Skip to content

Commit

Permalink
fix: fix constuctor (#28)
Browse files Browse the repository at this point in the history
* fix: fix constuctor

* fix: format fix
  • Loading branch information
Zxilly committed Apr 21, 2021
1 parent 22444d5 commit 872f939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export class PrismaAdapter implements Adapter {
#option?: Prisma.PrismaClientOptions;
#prisma: PrismaClient;

/**
* @param option It should be PrismaClientOptions or PrismaClient.
* You should later call open() to activate it.
*/
constructor(option?: Prisma.PrismaClientOptions | PrismaClient) {
if (option instanceof PrismaClient) {
this.#prisma = option;
Expand Down

0 comments on commit 872f939

Please sign in to comment.