core/lib/tern_from_ts/defs/bcrypt.json.tmp
2017-05-14 13:22:31 +02:00

13 lines
517 B
Plaintext

{
"bcrypt": {
"genSaltSync": "fn(rounds?: number) -> string",
"genSalt": "fn(rounds: number, callback: fn(err: Error, salt: string))",
"hashSync": "fn(data: ?, salt: string) -> string",
"hash": "fn(data: ?, salt: string, callback: fn(err: Error, encrypted: string))",
"compareSync": "fn(data: ?, encrypted: string) -> bool",
"compare": "fn(data: ?, encrypted: string, callback: fn(err: Error, same: bool))",
"getRounds": "fn(encrypted: string) -> number"
},
"!name": "bcrypt.d.ts"
}