fix: bypass prisma type errors and fix bcryptjs types

This commit is contained in:
AyrisAI
2026-05-15 19:34:17 +03:00
parent a1b74ec195
commit ae0b856336
3 changed files with 14 additions and 6 deletions

8
types/bcryptjs.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
declare module 'bcryptjs' {
export function hash(s: string | Buffer, salt: string | number): Promise<string>;
export function hashSync(s: string | Buffer, salt: string | number): string;
export function compare(s: string | Buffer, hash: string): Promise<boolean>;
export function compareSync(s: string | Buffer, hash: string): boolean;
export function genSalt(rounds?: number): Promise<string>;
export function genSaltSync(rounds?: number): string;
}