Skip to content

Commit

Permalink
Update planetscale types (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Jul 22, 2023
1 parent 9ab749e commit 11528d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .auri/$woxsf5uf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "@lucia-auth/adapter-mysql" # package name
type: "patch" # "major", "minor", "patch"
---

Update `planetscale()` adapter types
2 changes: 1 addition & 1 deletion packages/adapter-mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"devDependencies": {
"@lucia-auth/adapter-test": "latest",
"@planetscale/database": "^1.7.0",
"@planetscale/database": "^1.8.0",
"dotenv": "^16.0.3",
"lucia": "latest",
"mysql2": "^3.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-mysql/src/drivers/planetscale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
} from "lucia";

export const planetscaleAdapter = (
connection: Connection,
connection: Pick<Connection, "execute" | "transaction">,
tables: {
user: string;
session: string | null;
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-mysql/src/lucia.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="lucia" />
declare namespace Lucia {
type Auth = any;
type DatabaseUserAttributes = any;
type DatabaseSessionAttributes = any;
type DatabaseUserAttributes = {};
type DatabaseSessionAttributes = {};
}

0 comments on commit 11528d9

Please sign in to comment.