Remove flow type

This commit is contained in:
Tom Moor
2018-07-07 18:22:17 -05:00
parent 4976d53ed8
commit 12a63396ab

View File

@ -1,37 +0,0 @@
// flow-typed signature: 96d9e6596558a201899e45822d93e38d
// flow-typed version: da30fe6876/bcrypt_v1.x.x/flow_>=v0.25.x
declare module bcrypt {
declare function genSaltSync(rounds?: number): string;
declare function genSalt(rounds: number): Promise<string>;
declare function genSalt(): Promise<string>;
declare function genSalt(callback: (err: Error, salt: string) => void): void;
declare function genSalt(
rounds: number,
callback: (err: Error, salt: string) => void
): void;
declare function hashSync(data: string, salt: string): string;
declare function hashSync(data: string, rounds: number): string;
declare function hash(
data: string,
saltOrRounds: string | number
): Promise<string>;
declare function hash(
data: string,
rounds: number,
callback: (err: Error, encrypted: string) => void
): void;
declare function hash(
data: string,
salt: string,
callback: (err: Error, encrypted: string) => void
): void;
declare function compareSync(data: string, encrypted: string): boolean;
declare function compare(data: string, encrypted: string): Promise<boolean>;
declare function compare(
data: string,
encrypted: string,
callback: (err: Error, same: boolean) => void
): void;
declare function getRounds(encrypted: string): number;
}