fix: bypass prisma type errors and fix bcryptjs types
This commit is contained in:
8
types/bcryptjs.d.ts
vendored
Normal file
8
types/bcryptjs.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user