Files
DefinitelyTyped/types/safe-compare/index.d.ts
2017-12-10 12:57:49 +05:00

14 lines
521 B
TypeScript

// Type definitions for safe-compare 1.1
// Project: https://github.com/Bruce17/safe-compare#readme
// Definitions by: Vadim Belorussov <https://github.com/bevalorous>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = safeCompare;
/**
* Do a constant time string comparison. Always compare the complete strings
* against each other to get a constant time. This method does not short-cut
* if the two string's length differs.
*/
declare function safeCompare(a: string, b: string): boolean;