mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
561 B
TypeScript
19 lines
561 B
TypeScript
// Type definitions for credential
|
|
// Project: https://github.com/ericelliott/credential
|
|
// Definitions by: Phú <https://github.com/phuvo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module 'credential' {
|
|
|
|
type HashCallback = (err: Error, hash: string) => void;
|
|
type VerifyCallback = (err: Error, isValid: boolean) => void;
|
|
|
|
namespace credential {
|
|
function hash(password: string, callback: HashCallback): void;
|
|
function verify(hash: string, password: string, callback: VerifyCallback): void;
|
|
}
|
|
|
|
export = credential;
|
|
|
|
}
|