mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
14 lines
521 B
TypeScript
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;
|