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

15 lines
698 B
JSON

{
"bcryptjs": {
"setRandomFallback": "fn(random: fn(random: number))",
"genSaltSync": "fn(rounds?: number) -> string",
"genSalt": "fn(callback: fn(err: Error, salt: string))",
"hashSync": "fn(s: string, salt?: number, string: ?) -> string",
"hash": "fn(s: string, salt: number, string: ?, callback: fn(err: Error, hash: string), progressCallback?: fn(percent: number))",
"compareSync": "fn(s: string, hash: string) -> bool",
"compare": "fn(s: string, hash: string, callback: fn(err: Error, success: bool), progressCallback?: fn(percent: number))",
"getRounds": "fn(hash: string) -> number",
"getSalt": "fn(hash: string) -> string"
},
"!name": "bcryptjs"
}