Skip to content

Commit

Permalink
Update types in Drizzle adapter (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Aug 5, 2024
1 parent acd525a commit 1233e99
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .auri/$swobt2q7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "@lucia-auth/adapter-drizzle" # package name
type: "minor" # "major", "minor", "patch"
---

Update types to latest.
17 changes: 17 additions & 0 deletions packages/adapter-drizzle/src/drivers/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { eq, lte } from "drizzle-orm";

import type { Adapter, DatabaseSession, DatabaseUser, UserId } from "lucia";
import type { PgColumn, PgDatabase, PgTableWithColumns } from "drizzle-orm/pg-core";

import type { InferSelectModel } from "drizzle-orm";

export class DrizzlePostgreSQLAdapter implements Adapter {
Expand Down Expand Up @@ -94,6 +95,10 @@ export type PostgreSQLUserTable = PgTableWithColumns<{
hasDefault: boolean; // must be boolean instead of any to allow default values
enumValues: any;
baseColumn: any;
isPrimaryKey: any;
isAutoincrement: any;
hasRuntimeDefault: any;
generated: any;
},
object
>;
Expand All @@ -116,6 +121,10 @@ export type PostgreSQLSessionTable = PgTableWithColumns<{
driverParam: any;
hasDefault: false;
name: any;
isPrimaryKey: any;
isAutoincrement: any;
hasRuntimeDefault: any;
generated: any;
},
object
>;
Expand All @@ -130,6 +139,10 @@ export type PostgreSQLSessionTable = PgTableWithColumns<{
driverParam: any;
hasDefault: false;
name: any;
isPrimaryKey: any;
isAutoincrement: any;
hasRuntimeDefault: any;
generated: any;
},
object
>;
Expand All @@ -144,6 +157,10 @@ export type PostgreSQLSessionTable = PgTableWithColumns<{
driverParam: any;
hasDefault: false;
name: any;
isPrimaryKey: any;
isAutoincrement: any;
hasRuntimeDefault: any;
generated: any;
},
object
>;
Expand Down

0 comments on commit 1233e99

Please sign in to comment.