Add typecheck

This commit is contained in:
2025-08-21 00:17:01 +02:00
parent 79c900955d
commit 5d1a029a54
12 changed files with 44 additions and 24 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import type { User as PUser } from '@prisma/client';
declare module '#auth-utils' {
type User = Pick<PUser, 'id' | 'role' | 'name'>;
// eslint-disable-next-line
interface User extends Pick<PUser, 'id' | 'role' | 'name'> {}
interface UserSession {
user: User;
loggedInAt: string | Date;