UNPKG

ts-clean-core

Version:
10 lines (9 loc) 260 B
export default interface Encrypts { genHash: GenerateHash; verify: PasswordVerification; } export declare type GenerateHash = (pw: string) => Promise<string>; export declare type PasswordVerification = ( pw: string, hash: string ) => Promise<boolean>;